pub struct PurgePlanRequest { /* private fields */ }Expand description
One bounded purge planning request.
Implementations§
Source§impl PurgePlanRequest
impl PurgePlanRequest
Sourcepub fn new(
job_name: JobName,
statuses: TerminalStatusSet,
minimum_age: Duration,
batch: PurgeBatchBound,
) -> Result<Self, RetentionError>
pub fn new( job_name: JobName, statuses: TerminalStatusSet, minimum_age: Duration, batch: PurgeBatchBound, ) -> Result<Self, RetentionError>
Validates one bounded purge planning request.
§Errors
Returns RetentionError::AgeBoundTooSmall below MIN_PURGE_AGE.
Sourcepub const fn statuses(&self) -> &TerminalStatusSet
pub const fn statuses(&self) -> &TerminalStatusSet
Borrows the targeted terminal statuses.
Sourcepub const fn minimum_age(&self) -> Duration
pub const fn minimum_age(&self) -> Duration
Returns the minimum durable age of a candidate.
Sourcepub const fn batch(&self) -> PurgeBatchBound
pub const fn batch(&self) -> PurgeBatchBound
Returns the batch bound.
Trait Implementations§
Source§impl Clone for PurgePlanRequest
impl Clone for PurgePlanRequest
Source§fn clone(&self) -> PurgePlanRequest
fn clone(&self) -> PurgePlanRequest
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 PurgePlanRequest
impl Debug for PurgePlanRequest
impl Eq for PurgePlanRequest
Source§impl PartialEq for PurgePlanRequest
impl PartialEq for PurgePlanRequest
impl StructuralPartialEq for PurgePlanRequest
Auto Trait Implementations§
impl Freeze for PurgePlanRequest
impl RefUnwindSafe for PurgePlanRequest
impl Send for PurgePlanRequest
impl Sync for PurgePlanRequest
impl Unpin for PurgePlanRequest
impl UnsafeUnpin for PurgePlanRequest
impl UnwindSafe for PurgePlanRequest
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