Struct rfsapi::RawFileData [] [src]

pub struct RawFileData {
    pub mime_type: Mime,
    pub name: String,
    pub last_modified: Tm,
    pub size: u64,
    pub is_file: bool,
}

Information about a file available through RFSAPI.

Fields

File's determined MIME type.

Always valid, but possibly garbage for directories. Recommended value for directories: "text/directory".

File's name, which can be used to navigate to it.

File's last modification time, as returned by the FS.

File size in bytes.

Possibly garbage for directories. Recommended value for directories: 0.

Whether the file is a file.

Trait Implementations

impl Eq for RawFileData
[src]

impl PartialEq for RawFileData
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for RawFileData
[src]

This method returns an Ordering between self and other. Read more

impl PartialOrd for RawFileData
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for RawFileData
[src]

Formats the value using the given formatter.

impl Clone for RawFileData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for RawFileData
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Serialize for RawFileData
[src]

Serialize this value into the given Serde serializer. Read more

impl Deserialize for RawFileData
[src]

Deserialize this value from the given Serde deserializer. Read more