[][src]Struct metadata_backup::metadata::Metadata

pub struct Metadata {
    pub name: String,
    pub size: u64,
    pub is_dir: bool,
    pub atime: Option<SystemTime>,
    pub mtime: Option<SystemTime>,
    pub ctime: Option<SystemTime>,
    pub st_mode: Option<u32>,
    pub st_mode_string: Option<String>,
    pub uid: Option<u32>,
    pub gid: Option<u32>,
    pub link: Option<String>,
}

Fields

name: Stringsize: u64is_dir: boolatime: Option<SystemTime>mtime: Option<SystemTime>ctime: Option<SystemTime>st_mode: Option<u32>st_mode_string: Option<String>uid: Option<u32>gid: Option<u32>link: Option<String>

Methods

impl Metadata[src]

pub fn new<P: AsRef<Path>>(p: P) -> Result<Metadata, Error>[src]

Trait Implementations

impl Clone for Metadata[src]

impl Debug for Metadata[src]

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

impl PartialEq<Metadata> for Metadata[src]

impl Serialize for Metadata[src]

impl StructuralPartialEq for Metadata[src]

Auto Trait Implementations

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.