# LogicalFile

## pub struct LogicalFile

A file at a path in a drive, along with its current revision.

## Implementations

### impl LogicalFile

#### pub fn managed_file_rid(&self) -> Option<&str>

RID identifying this managed logical file, stable across revisions and moves.

Virtual-drive files have provider-specific identities rather than Nominal
file RIDs, so this is `None` for them.

#### pub fn path(&self) -> &str

Drive-relative path.

#### pub fn state(&self) -> FileState

#### pub fn size_bytes(&self) -> u64

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

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

RID of the user who created the file.

#### pub fn current_revision_rid(&self) -> Option<&str>

RID of the file’s current revision, when the file is backed by a
managed (not virtual) revision.

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