pub struct FileState {
pub content: Vec<u8>,
pub content_hash: String,
pub permissions: Option<u32>,
pub is_symlink: bool,
pub symlink_target: Option<PathBuf>,
pub oversized: bool,
}Expand description
Captured state of a file for backup purposes.
Fields§
§content: Vec<u8>§content_hash: String§permissions: Option<u32>§is_symlink: bool§symlink_target: Option<PathBuf>§oversized: boolTrue if the file exceeded MAX_BACKUP_FILE_SIZE and content was not captured.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileState
impl RefUnwindSafe for FileState
impl Send for FileState
impl Sync for FileState
impl Unpin for FileState
impl UnsafeUnpin for FileState
impl UnwindSafe for FileState
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