[][src]Struct rfsapi::RawFileData

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

mime_type: Mime

File's determined MIME type.

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

name: String

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

last_modified: Tm

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

size: u64

File size in bytes.

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

is_file: bool

Whether the file is a file.

Trait Implementations

impl Clone for RawFileData[src]

impl Debug for RawFileData[src]

impl<'de> Deserialize<'de> for RawFileData[src]

impl Eq for RawFileData[src]

impl Hash for RawFileData[src]

impl Ord for RawFileData[src]

impl PartialEq<RawFileData> for RawFileData[src]

impl PartialOrd<RawFileData> for RawFileData[src]

impl Serialize for RawFileData[src]

impl StructuralEq for RawFileData[src]

impl StructuralPartialEq for RawFileData[src]

Auto Trait Implementations

impl RefUnwindSafe for RawFileData

impl Send for RawFileData

impl Sync for RawFileData

impl Unpin for RawFileData

impl UnwindSafe for RawFileData

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.