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>>,
}Expand description
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: StringName 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: MethodCompression 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
Trait Implementations§
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more