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, Sync, Unpin, !UnwindSafe, !RefUnwindSafe