pub struct RepoStatus {
pub repo_id: String,
pub commit_hash: Option<String>,
pub cache_path: PathBuf,
pub files: Vec<(String, FileStatus)>,
}Expand description
Cache status report for a repository.
Fields§
§repo_id: StringThe repository identifier.
commit_hash: Option<String>The resolved commit hash (if available).
cache_path: PathBufThe cache directory for this repo.
files: Vec<(String, FileStatus)>Per-file status, sorted by filename.
Implementations§
Source§impl RepoStatus
impl RepoStatus
Sourcepub fn complete_count(&self) -> usize
pub fn complete_count(&self) -> usize
Number of fully downloaded files.
Sourcepub fn partial_count(&self) -> usize
pub fn partial_count(&self) -> usize
Number of partially downloaded files.
Sourcepub fn missing_count(&self) -> usize
pub fn missing_count(&self) -> usize
Number of missing files.
Trait Implementations§
Source§impl Clone for RepoStatus
impl Clone for RepoStatus
Source§fn clone(&self) -> RepoStatus
fn clone(&self) -> RepoStatus
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 RepoStatus
impl RefUnwindSafe for RepoStatus
impl Send for RepoStatus
impl Sync for RepoStatus
impl Unpin for RepoStatus
impl UnsafeUnpin for RepoStatus
impl UnwindSafe for RepoStatus
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