pub struct TestFile {
pub name: String,
pub data: Vec<u8>,
pub compression: Option<u8>,
pub encrypted: bool,
pub fix_key: bool,
}Available on crate features
test-utils only.Expand description
A file to include in the test archive
Fields§
§name: StringPath/name of the file within the archive
data: Vec<u8>File content data
compression: Option<u8>Compression method flags (None for no compression)
encrypted: boolWhether the file should be encrypted
fix_key: boolWhether to use FIX_KEY encryption mode
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestFile
impl RefUnwindSafe for TestFile
impl Send for TestFile
impl Sync for TestFile
impl Unpin for TestFile
impl UnsafeUnpin for TestFile
impl UnwindSafe for TestFile
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