pub struct PointerEntry {
pub oid: Oid,
pub size: u64,
pub path: Option<PathBuf>,
pub canonical: bool,
}Expand description
One LFS pointer discovered by the scanner.
Fields§
§oid: OidLFS object OID (the oid sha256:... field of the pointer file).
size: u64Object size in bytes (per the pointer’s size field).
path: Option<PathBuf>First working-tree path the pointer was found at. A single LFS object can appear under many paths in history; we keep the first. Useful for progress display (“downloading foo/bar.bin”); not the authoritative source — caller should not rely on it for routing.
canonical: booltrue if the pointer’s source bytes were byte-canonical. Used by
git lfs fsck --pointers to flag pointers that parse but don’t
match the canonical encoding.
Trait Implementations§
Source§impl Clone for PointerEntry
impl Clone for PointerEntry
Source§fn clone(&self) -> PointerEntry
fn clone(&self) -> PointerEntry
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 moreAuto Trait Implementations§
impl Freeze for PointerEntry
impl RefUnwindSafe for PointerEntry
impl Send for PointerEntry
impl Sync for PointerEntry
impl Unpin for PointerEntry
impl UnsafeUnpin for PointerEntry
impl UnwindSafe for PointerEntry
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