Struct zbox::Metadata[][src]

pub struct Metadata { /* fields omitted */ }
Expand description

Metadata information about a file or a directory.

This structure is returned from the File::metadata and Repo::metadata represents known metadata about a file such as its type, size, modification times and etc.

Implementations

Returns the file type for this metadata.

Returns whether this metadata is for a directory.

Returns whether this metadata is for a regular file.

Returns the size of the current version of file, in bytes, this metadata is for.

Returns current version number of file listed in this metadata.

Returns the creation time listed in this metadata.

Returns the last modification time listed in this metadata.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.