#[non_exhaustive]pub struct CachedRepo {
pub repo_id: String,
pub repo_type: RepoType,
pub repo_path: PathBuf,
pub revisions: Vec<CachedRevision>,
pub blob_count: usize,
pub size_on_disk: u64,
pub last_accessed: SystemTime,
pub last_modified: SystemTime,
}Expand description
One repository discovered in the cache.
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.repo_id: StringHub repository identifier, such as google/gemma-2-2b-it.
repo_type: RepoTypeRepository kind.
repo_path: PathBufAbsolute path to this repository’s cache directory.
revisions: Vec<CachedRevision>Cached revisions, sorted by commit hash.
blob_count: usizeNumber of unique canonical file paths referenced by revisions.
size_on_disk: u64Total bytes across unique canonical file paths.
last_accessed: SystemTimeLatest file access time across revisions.
last_modified: SystemTimeLatest file modification time across revisions.
Trait Implementations§
Source§impl Clone for CachedRepo
impl Clone for CachedRepo
Source§impl Debug for CachedRepo
impl Debug for CachedRepo
impl Eq for CachedRepo
Source§impl PartialEq for CachedRepo
impl PartialEq for CachedRepo
impl StructuralPartialEq for CachedRepo
Auto Trait Implementations§
impl Freeze for CachedRepo
impl RefUnwindSafe for CachedRepo
impl Send for CachedRepo
impl Sync for CachedRepo
impl Unpin for CachedRepo
impl UnsafeUnpin for CachedRepo
impl UnwindSafe for CachedRepo
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