pub struct AddFileOptions {
pub compression: CompressionMethod,
pub encrypt: bool,
pub fix_key: bool,
pub replace_existing: bool,
pub locale: u16,
pub platform: u8,
}Expand description
Options for adding files to an archive
Fields§
§compression: CompressionMethodCompression method to use
encrypt: boolWhether to encrypt the file
fix_key: boolWhether to use FIX_KEY encryption (adjusts key by block position)
replace_existing: boolWhether to replace existing file (default: true)
locale: u16Locale code (default: 0 = neutral)
platform: u8Platform code (default: 0 = all)
Implementations§
Source§impl AddFileOptions
impl AddFileOptions
Sourcepub fn compression(self, method: CompressionMethod) -> Self
pub fn compression(self, method: CompressionMethod) -> Self
Set compression method
Sourcepub fn replace_existing(self, replace: bool) -> Self
pub fn replace_existing(self, replace: bool) -> Self
Set whether to replace existing files
Trait Implementations§
Source§impl Clone for AddFileOptions
impl Clone for AddFileOptions
Source§fn clone(&self) -> AddFileOptions
fn clone(&self) -> AddFileOptions
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 AddFileOptions
impl Debug for AddFileOptions
Auto Trait Implementations§
impl Freeze for AddFileOptions
impl RefUnwindSafe for AddFileOptions
impl Send for AddFileOptions
impl Sync for AddFileOptions
impl Unpin for AddFileOptions
impl UnwindSafe for AddFileOptions
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