[−][src]Struct zip::write::FileOptions
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][+]
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][−]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][−]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src][−]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src][−]
impl<T> Borrow for T where
T: ?Sized,
[src][−]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src][−]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src][−]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src][−]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src][−]
impl<T> Any for T where
T: 'static + ?Sized,
[src][−]
T: 'static + ?Sized,