pub struct VersionPruneResult {
pub retained: Vec<MapVersionId>,
pub removed: Vec<MapVersionId>,
}Expand description
Result of pruning immutable version roots from a managed map.
Pruning removes catalog roots, not content-addressed nodes. Run the normal retention-aware GC flow afterward to reclaim nodes no longer reachable from the remaining versions.
Fields§
§retained: Vec<MapVersionId>Versions retained by the policy, including the current head.
removed: Vec<MapVersionId>Version roots removed from the catalog.
Implementations§
Source§impl VersionPruneResult
impl VersionPruneResult
Sourcepub fn removed_count(&self) -> usize
pub fn removed_count(&self) -> usize
Number of immutable version roots removed.
Sourcepub fn is_unchanged(&self) -> bool
pub fn is_unchanged(&self) -> bool
Whether pruning left the catalog unchanged.
Trait Implementations§
Source§impl Clone for VersionPruneResult
impl Clone for VersionPruneResult
Source§fn clone(&self) -> VersionPruneResult
fn clone(&self) -> VersionPruneResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VersionPruneResult
impl Debug for VersionPruneResult
Source§impl Default for VersionPruneResult
impl Default for VersionPruneResult
Source§fn default() -> VersionPruneResult
fn default() -> VersionPruneResult
Returns the “default value” for a type. Read more
impl Eq for VersionPruneResult
Source§impl PartialEq for VersionPruneResult
impl PartialEq for VersionPruneResult
impl StructuralPartialEq for VersionPruneResult
Auto Trait Implementations§
impl Freeze for VersionPruneResult
impl RefUnwindSafe for VersionPruneResult
impl Send for VersionPruneResult
impl Sync for VersionPruneResult
impl Unpin for VersionPruneResult
impl UnsafeUnpin for VersionPruneResult
impl UnwindSafe for VersionPruneResult
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,
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