# DrivesClient

## pub struct DrivesClient

Client for drive operations in the Nominal file store.

## Implementations

### impl DrivesClient

#### pub async fn create(&self, id: impl Into<String>) -> Result<Drive>

Create a managed drive in the workspace.

#### pub async fn get(&self, rid: &str) -> Result<Drive>

Get a drive by RID.

#### pub async fn get_by_id(&self, id: &str) -> Result<Drive>

Get a drive by ID within the workspace.

#### pub async fn list(&self, include_archived: bool) -> Result<Vec<Drive>>

List drives in the workspace, collecting all pages eagerly.

#### pub async fn rename(&self, rid: &str, new_id: impl Into<String>) -> Result<Drive>

Change a drive’s ID. Returns the updated drive.

#### pub async fn archive(&self, rid: &str) -> Result<Drive>

Archive a drive. Archived drives are hidden from the UI but not deleted.

#### pub async fn unarchive(&self, rid: &str) -> Result<Drive>

Unarchive a drive, restoring its visibility in the UI.

## Trait implementations

**Auto traits**: [`Send`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Send.html), [`Sync`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Sync.html), [`Unpin`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Unpin.html), [`!UnwindSafe`](https://doc.rust-lang.org/1.98.1/core/panic/unwind_safe/trait.UnwindSafe.html), [`!RefUnwindSafe`](https://doc.rust-lang.org/1.98.1/core/panic/unwind_safe/trait.RefUnwindSafe.html)
