pub struct IndexEntry {
pub path: String,
pub content_hash: ContentHash,
pub mtime_secs: u64,
pub mtime_nanos: u32,
pub size: u64,
pub materialized: bool,
}Expand description
Index entry for a tracked file.
Fields§
§path: String§content_hash: ContentHash§mtime_secs: u64Modification time: seconds since Unix epoch
mtime_nanos: u32Modification time: nanosecond component
size: u64File size in bytes
materialized: boolWhether this file is present on disk. Non-materialized files (large files deferred during checkout) are tracked in the index but not expected on disk — status skips them, commit carries forward their shard references unchanged.
Implementations§
Source§impl IndexEntry
impl IndexEntry
Sourcepub fn new(
path: String,
content_hash: ContentHash,
mtime_secs: u64,
mtime_nanos: u32,
size: u64,
) -> Self
pub fn new( path: String, content_hash: ContentHash, mtime_secs: u64, mtime_nanos: u32, size: u64, ) -> Self
Create a new materialized IndexEntry (file is on disk).
Sourcepub fn new_remote(path: String, content_hash: ContentHash, size: u64) -> Self
pub fn new_remote(path: String, content_hash: ContentHash, size: u64) -> Self
Create a non-materialized index entry (file tracked but not on disk).
Trait Implementations§
Source§impl Clone for IndexEntry
impl Clone for IndexEntry
Source§fn clone(&self) -> IndexEntry
fn clone(&self) -> IndexEntry
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 IndexEntry
impl Debug for IndexEntry
Source§impl<'de> Deserialize<'de> for IndexEntry
impl<'de> Deserialize<'de> for IndexEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IndexEntry
impl PartialEq for IndexEntry
Source§impl Serialize for IndexEntry
impl Serialize for IndexEntry
impl Eq for IndexEntry
impl StructuralPartialEq for IndexEntry
Auto Trait Implementations§
impl Freeze for IndexEntry
impl RefUnwindSafe for IndexEntry
impl Send for IndexEntry
impl Sync for IndexEntry
impl Unpin for IndexEntry
impl UnsafeUnpin for IndexEntry
impl UnwindSafe for IndexEntry
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more