#[repr(C)]pub struct ZipWriteConfig {
pub compression_method: u8,
pub compression_level: u8,
pub unix_permissions: u32,
pub comment: String,
}Expand description
Configuration for writing ZIP archives
Fields§
§compression_method: u8Compression method: 0 = Store (no compression), 1 = Deflate
compression_level: u8Compression level (0-9, only for Deflate)
unix_permissions: u32Unix permissions for files (default: 0o644)
comment: StringArchive comment
Implementations§
Trait Implementations§
Source§impl Clone for ZipWriteConfig
impl Clone for ZipWriteConfig
Source§fn clone(&self) -> ZipWriteConfig
fn clone(&self) -> ZipWriteConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ZipWriteConfig
impl Debug for ZipWriteConfig
Auto Trait Implementations§
impl Freeze for ZipWriteConfig
impl RefUnwindSafe for ZipWriteConfig
impl Send for ZipWriteConfig
impl Sync for ZipWriteConfig
impl Unpin for ZipWriteConfig
impl UnwindSafe for ZipWriteConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more