[−][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: 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]
fn clone(&self) -> FileOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,