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,
}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.
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
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> ⓘ
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