[][src]Struct zip::write::FileOptions

pub struct FileOptions { /* fields omitted */ }

Metadata for a file to be written

Methods

impl FileOptions[src]

pub fn default() -> FileOptions[src]

Construct a new FileOptions object

pub fn compression_method(self, method: CompressionMethod) -> FileOptions[src]

Set the compression method for the new file

The default is CompressionMethod::Deflated. If the deflate compression feature is disabled, CompressionMethod::Stored becomes the default. otherwise.

pub fn last_modified_time(self, mod_time: DateTime) -> FileOptions[src]

Set the last modified time

The default is the current timestamp if the 'time' feature is enabled, and 1980-01-01 otherwise

pub fn unix_permissions(self, mode: u32) -> FileOptions[src]

Set the permissions for the new file.

The format is represented with unix-style permissions. The default is 0o644, which represents rw-r--r-- for files, and 0o755, which represents rwxr-xr-x for directories

Trait Implementations

impl Clone for FileOptions[src]

impl Copy for FileOptions[src]

impl Default for FileOptions[src]

Auto Trait Implementations

impl RefUnwindSafe for FileOptions

impl Send for FileOptions

impl Sync for FileOptions

impl Unpin for FileOptions

impl UnwindSafe for FileOptions

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> 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.