[][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: Tm) -> FileOptions[src][]

Set the last modified time

The default is the current timestamp

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][+]

fn clone_from(&mut self, source: &Self)
1.0.0
[src][]

Performs copy-assignment from source. Read more

impl Copy for FileOptions[src]

Auto Trait Implementations

impl Send for FileOptions

impl Sync for FileOptions

Blanket Implementations

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

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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