pub struct ListEntry {
pub path: String,
pub is_symlink: bool,
pub symlink_target: Option<String>,
pub sha256: String,
pub mode: String,
pub size: u64,
}Expand description
A single entry returned by crate::list_snapshot.
Fields§
§path: StringSlash-delimited path relative to the snapshot root.
is_symlink: booltrue for symlinks, false for regular files.
symlink_target: Option<String>Symlink target string (only set when is_symlink == true).
sha256: StringHex-encoded SHA-256 of file content (empty for symlinks).
mode: StringOctal permission bits as a string (e.g. "644", "755", "120000").
size: u64Byte size of file content (0 for symlinks).
Trait Implementations§
impl Eq for ListEntry
impl StructuralPartialEq for ListEntry
Auto Trait Implementations§
impl Freeze for ListEntry
impl RefUnwindSafe for ListEntry
impl Send for ListEntry
impl Sync for ListEntry
impl Unpin for ListEntry
impl UnsafeUnpin for ListEntry
impl UnwindSafe for ListEntry
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