# 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`](https://dev.nominal.io/rust-client/ref/rust/nominal/core/struct.Drive.md#method.source "nominal::core::Drive::source") and [`Self::content_mutability`](https://dev.nominal.io/rust-client/ref/rust/nominal/core/struct.Drive.md#method.content_mutability "nominal::core::Drive::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`](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html), [`Clone`](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html)

**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)
