pub struct RetentionPolicyPreview {
pub policy: RetentionPolicy,
pub selected_floor: u64,
pub target_satisfied: bool,
pub explanation: String,
pub plan: RetentionPlan,
}Expand description
Read-only policy resolution plus the normal blocker-aware retention plan.
Fields§
§policy: RetentionPolicyPolicy that was evaluated.
selected_floor: u64Exact position selected before whole-segment rounding.
target_satisfied: boolFalse when an indivisible active segment exceeds a byte target.
explanation: StringStable human-readable explanation of the selection.
plan: RetentionPlanExisting explicit-floor safety plan produced from the selection.
Trait Implementations§
Source§impl Clone for RetentionPolicyPreview
impl Clone for RetentionPolicyPreview
Source§fn clone(&self) -> RetentionPolicyPreview
fn clone(&self) -> RetentionPolicyPreview
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 RetentionPolicyPreview
impl Debug for RetentionPolicyPreview
impl Eq for RetentionPolicyPreview
Source§impl PartialEq for RetentionPolicyPreview
impl PartialEq for RetentionPolicyPreview
impl StructuralPartialEq for RetentionPolicyPreview
Auto Trait Implementations§
impl Freeze for RetentionPolicyPreview
impl RefUnwindSafe for RetentionPolicyPreview
impl Send for RetentionPolicyPreview
impl Sync for RetentionPolicyPreview
impl Unpin for RetentionPolicyPreview
impl UnsafeUnpin for RetentionPolicyPreview
impl UnwindSafe for RetentionPolicyPreview
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