Struct aruna_file::transformer::FileContext
source · pub struct FileContext {Show 13 fields
pub file_name: String,
pub input_size: u64,
pub file_size: u64,
pub file_path: Option<String>,
pub uid: Option<u64>,
pub gid: Option<u64>,
pub mode: Option<u32>,
pub mtime: Option<u64>,
pub skip_decompression: bool,
pub skip_decryption: bool,
pub encryption_key: Option<Vec<u8>>,
pub is_dir: bool,
pub is_symlink: bool,
}Fields§
§file_name: String§input_size: u64§file_size: u64§file_path: Option<String>§uid: Option<u64>§gid: Option<u64>§mode: Option<u32>§mtime: Option<u64>§skip_decompression: bool§skip_decryption: bool§encryption_key: Option<Vec<u8>>§is_dir: bool§is_symlink: boolImplementations§
Trait Implementations§
source§impl Clone for FileContext
impl Clone for FileContext
source§fn clone(&self) -> FileContext
fn clone(&self) -> FileContext
Returns a copy 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 FileContext
impl Debug for FileContext
source§impl Default for FileContext
impl Default for FileContext
source§fn default() -> FileContext
fn default() -> FileContext
Returns the “default value” for a type. Read more
source§impl Ord for FileContext
impl Ord for FileContext
source§fn cmp(&self, other: &FileContext) -> Ordering
fn cmp(&self, other: &FileContext) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<FileContext> for FileContext
impl PartialEq<FileContext> for FileContext
source§fn eq(&self, other: &FileContext) -> bool
fn eq(&self, other: &FileContext) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<FileContext> for FileContext
impl PartialOrd<FileContext> for FileContext
source§fn partial_cmp(&self, other: &FileContext) -> Option<Ordering>
fn partial_cmp(&self, other: &FileContext) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<FileContext> for Header
impl TryFrom<FileContext> for Header
impl Eq for FileContext
impl StructuralEq for FileContext
impl StructuralPartialEq for FileContext
Auto Trait Implementations§
impl RefUnwindSafe for FileContext
impl Send for FileContext
impl Sync for FileContext
impl Unpin for FileContext
impl UnwindSafe for FileContext
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.