pub struct RepoEntry {
pub added_at: DateTime<Utc>,
pub last_pruned_at: Option<DateTime<Utc>>,
pub override_idle_days: Option<u64>,
pub enabled: bool,
pub total_freed_bytes: u64,
pub identity: Option<String>,
}Expand description
Metadata for a single registered repository.
Fields§
§added_at: DateTime<Utc>Timestamp when the repo was added to the registry.
last_pruned_at: Option<DateTime<Utc>>Timestamp of the last successful prune, if any.
override_idle_days: Option<u64>Per-repo override for idle days (overrides global setting).
enabled: boolWhether this repo is enabled for pruning.
total_freed_bytes: u64Cumulative bytes reclaimed from this repository.
Recorded from 1.1.0 onward. Registries written by 1.0.0 have no such figure and
deserialize to zero, so devp stats says where the number starts rather than
implying a repository pruned last March never freed anything.
identity: Option<String>The repository’s root commit, recorded when it was registered.
A repository that is moved keeps this; its path does not. Without it a moved workspace registers as a brand new repository and its prune history is stranded on a path that will never exist again. Registries written before 1.4.0 have none, and re-registering the repository is what fills it in.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RepoEntry
impl<'de> Deserialize<'de> for RepoEntry
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>,
impl StructuralPartialEq for RepoEntry
Auto Trait Implementations§
impl Freeze for RepoEntry
impl RefUnwindSafe for RepoEntry
impl Send for RepoEntry
impl Sync for RepoEntry
impl Unpin for RepoEntry
impl UnsafeUnpin for RepoEntry
impl UnwindSafe for RepoEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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