Drive#

pub struct Drive#

Represents a drive in the Nominal file store.

A drive is a named container of files within a workspace, similar to a bucket or a shared folder.

Implementations#

impl Drive
pub fn rid(&self) -> &str#
pub fn workspace_rid(&self) -> &str#
pub fn id(&self) -> &str#

The drive’s human-readable identifier, unique within the workspace.

pub fn state(&self) -> DriveState#
pub fn source(&self) -> DriveSource#

Where the drive’s files come from.

pub fn content_mutability(&self) -> DriveMutability#

Whether the drive’s contents can be modified through Nominal.

pub fn kind(&self) -> DriveKind#

A compatibility summary of the drive’s storage model.

Prefer Self::source and Self::content_mutability.

pub fn created_at(&self) -> Option<DateTime<Utc>>#
pub fn created_by(&self) -> Option<&str>#

RID of the user who created the drive.

Trait implementations#

Derived: Debug, Clone

Auto traits: Send, Sync, Unpin, UnwindSafe, RefUnwindSafe