pub struct PrunePlan {
pub candidates: Vec<String>,
pub pinned_kept: usize,
pub archived_kept: usize,
}Expand description
What a retention policy would delete, and what it refuses to touch.
Fields§
§candidates: Vec<String>Ids the policy selects, newest first. Nothing is deleted by computing this.
pinned_kept: usizeHow many sessions matched the policy and were kept anyway because they are pinned.
archived_kept: usizeHow many matched and were kept because they are archived, and this prune did not ask for
them (--archived). Counted apart from pinned_kept so the sentence that says why each
one survived can name the flag that would have changed the answer.
Trait Implementations§
impl Eq for PrunePlan
impl StructuralPartialEq for PrunePlan
Auto Trait Implementations§
impl Forget for PrunePlan
impl Freeze for PrunePlan
impl Move for PrunePlan
impl RefUnwindSafe for PrunePlan
impl Send for PrunePlanwhere
RawVecInner: Send,
impl Sync for PrunePlanwhere
RawVecInner: Sync,
impl Unpin for PrunePlan
impl UnsafeUnpin for PrunePlan
impl UnwindSafe for PrunePlanwhere
RawVecInner: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.