[][src]Struct rc_zip::Entry

pub struct Entry {
    pub name: String,
    pub method: Method,
    pub comment: Option<String>,
    pub modified: DateTime<Utc>,
    pub created: Option<DateTime<Utc>>,
    pub accessed: Option<DateTime<Utc>>,
}

Describes a zip archive entry (a file, a directory, a symlink)

Entry contains normalized metadata fields, that can be set when writing a zip archive. Additional metadata, along with the information required to extract an entry, are available in StoredEntry instead.

Fields

name: String

Name of the file Must be a relative path, not start with a drive letter (e.g. C:), and must use forward slashes instead of back slashes

method: Method

Compression method

See Method for more details.

comment: Option<String>

Comment is any arbitrary user-defined string shorter than 64KiB

modified: DateTime<Utc>

Modified timestamp

created: Option<DateTime<Utc>>

Created timestamp

accessed: Option<DateTime<Utc>>

Accessed timestamp

Methods

impl Entry[src]

pub fn new<S>(name: S, method: Method) -> Self where
    S: Into<String>, 
[src]

Trait Implementations

impl Debug for Entry[src]

Auto Trait Implementations

impl RefUnwindSafe for Entry

impl Send for Entry

impl Sync for Entry

impl Unpin for Entry

impl UnwindSafe for Entry

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> From<T> for T[src]

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

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

type Error = !

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.