pub struct FileOptions {
pub encrypt: bool,
pub compress: bool,
pub adjust_key: bool,
}Expand description
Represents various options that can be used when adding a file to an archive.
Fields§
§encrypt: boolWhether to encrypt the file using MPQ’s encryption scheme. The encryption key is derived from the file name, so in practice this is pretty useless.
compress: boolWhether to compress the file. Currently will only try to use DEFLATE compression.
adjust_key: boolIf the file is ecnrypted, this will “adjust” the encryption key by
performing some simple transformations on it. By default, this is used for
“technical” files such as (listfile).
Trait Implementations§
Source§impl Clone for FileOptions
impl Clone for FileOptions
Source§fn clone(&self) -> FileOptions
fn clone(&self) -> FileOptions
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 FileOptions
impl Debug for FileOptions
Source§impl Default for FileOptions
impl Default for FileOptions
Source§fn default() -> FileOptions
fn default() -> FileOptions
Returns the “default value” for a type. Read more
impl Copy for FileOptions
Auto Trait Implementations§
impl Freeze for FileOptions
impl RefUnwindSafe for FileOptions
impl Send for FileOptions
impl Sync for FileOptions
impl Unpin for FileOptions
impl UnwindSafe for FileOptions
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