Struct zip::write::FileOptions
[−]
[src]
pub struct FileOptions { /* fields omitted */ }
Metadata for a file to be written
Methods
impl FileOptions
[src]
fn default() -> FileOptions
Construct a new FileOptions object
fn compression_method(self, method: CompressionMethod) -> FileOptions
Set the compression method for the new file
The default is CompressionMethod::Deflated
fn last_modified_time(self, mod_time: Tm) -> FileOptions
Set the last modified time
The default is the current timestamp
fn unix_permissions(self, mode: u32) -> FileOptions
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