pub struct SnapshotFile {
pub path: String,
pub sha256: String,
pub mode: String,
pub size: u64,
pub encoding: Option<String>,
pub symlink_target: Option<String>,
pub content: Vec<u8>,
}Expand description
An individual file record within a .gcl snapshot.
Invariants:
symlink_target.is_some()⟺sha256.is_empty() && content.is_empty() && mode == "120000"encoding == Some("base64")⟺contentcontains non-UTF-8 bytescontent.len() as u64 == sizefor all regular files
Fields§
§path: String§sha256: String§mode: String§size: u64§encoding: Option<String>§symlink_target: Option<String>§content: Vec<u8>Trait Implementations§
Source§impl Clone for SnapshotFile
impl Clone for SnapshotFile
Source§fn clone(&self) -> SnapshotFile
fn clone(&self) -> SnapshotFile
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 SnapshotFile
impl Debug for SnapshotFile
Source§impl PartialEq for SnapshotFile
impl PartialEq for SnapshotFile
impl Eq for SnapshotFile
impl StructuralPartialEq for SnapshotFile
Auto Trait Implementations§
impl Freeze for SnapshotFile
impl RefUnwindSafe for SnapshotFile
impl Send for SnapshotFile
impl Sync for SnapshotFile
impl Unpin for SnapshotFile
impl UnsafeUnpin for SnapshotFile
impl UnwindSafe for SnapshotFile
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