Struct zip::write::FileOptions
[−]
[src]
pub struct FileOptions { /* fields omitted */ }
Metadata for a file to be written
Methods
impl FileOptions
[src]
fn default() -> FileOptions
[src]
Construct a new FileOptions object
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.
fn last_modified_time(self, mod_time: Tm) -> FileOptions
[src]
Set the last modified time
The default is the current timestamp
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 Copy for FileOptions
[src]
impl Clone for FileOptions
[src]
fn clone(&self) -> FileOptions
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more