#[non_exhaustive]pub struct CachedRevision {
pub commit_hash: String,
pub snapshot_path: PathBuf,
pub files: Vec<CachedFile>,
pub refs: Vec<String>,
pub size_on_disk: u64,
pub last_modified: SystemTime,
}Expand description
One cached repository revision.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.commit_hash: StringSnapshot directory name, normally a commit hash.
snapshot_path: PathBufAbsolute path to the revision’s snapshot directory.
files: Vec<CachedFile>Readable files discovered recursively below snapshot_path.
refs: Vec<String>Named refs that point to this revision.
size_on_disk: u64Sum of file sizes within this revision.
last_modified: SystemTimeLatest file modification time within this revision.
Trait Implementations§
Source§impl Clone for CachedRevision
impl Clone for CachedRevision
Source§impl Debug for CachedRevision
impl Debug for CachedRevision
impl Eq for CachedRevision
Source§impl PartialEq for CachedRevision
impl PartialEq for CachedRevision
impl StructuralPartialEq for CachedRevision
Auto Trait Implementations§
impl Freeze for CachedRevision
impl RefUnwindSafe for CachedRevision
impl Send for CachedRevision
impl Sync for CachedRevision
impl Unpin for CachedRevision
impl UnsafeUnpin for CachedRevision
impl UnwindSafe for CachedRevision
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