pub struct RetentionRecord { /* private fields */ }Expand description
One append-only retention audit record.
Implementations§
Source§impl RetentionRecord
impl RetentionRecord
Sourcepub fn from_parts(id: RetentionActionId, draft: RetentionRecordDraft) -> Self
pub fn from_parts(id: RetentionActionId, draft: RetentionRecordDraft) -> Self
Rebuilds a record read from a durable adapter.
Sourcepub const fn id(&self) -> RetentionActionId
pub const fn id(&self) -> RetentionActionId
Returns the opaque record identifier.
Sourcepub const fn action(&self) -> RetentionAction
pub const fn action(&self) -> RetentionAction
Returns the audited action.
Sourcepub const fn operation_id(&self) -> &OperationId
pub const fn operation_id(&self) -> &OperationId
Borrows the idempotency key.
Sourcepub const fn reason(&self) -> &ReasonCode
pub const fn reason(&self) -> &ReasonCode
Borrows the closed-set reason code.
Sourcepub const fn job_instance_id(&self) -> Option<JobInstanceId>
pub const fn job_instance_id(&self) -> Option<JobInstanceId>
Returns the held instance, when the action targeted one.
Sourcepub const fn plan_digest(&self) -> Option<&[u8; 32]>
pub const fn plan_digest(&self) -> Option<&[u8; 32]>
Returns the applied plan digest, when the action was a purge.
Sourcepub const fn counts(&self) -> PurgeCounts
pub const fn counts(&self) -> PurgeCounts
Returns the per-table deleted counts.
Sourcepub const fn batch_bound(&self) -> Option<PurgeBatchBound>
pub const fn batch_bound(&self) -> Option<PurgeBatchBound>
Returns the batch bound, when the action was a purge.
Sourcepub const fn outcome(&self) -> RetentionOutcome
pub const fn outcome(&self) -> RetentionOutcome
Returns the recorded outcome class.
Sourcepub const fn applied_at(&self) -> SystemTime
pub const fn applied_at(&self) -> SystemTime
Returns the facade-clock instant of the audited action.
Trait Implementations§
Source§impl Clone for RetentionRecord
impl Clone for RetentionRecord
Source§fn clone(&self) -> RetentionRecord
fn clone(&self) -> RetentionRecord
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 RetentionRecord
impl Debug for RetentionRecord
impl Eq for RetentionRecord
Source§impl PartialEq for RetentionRecord
impl PartialEq for RetentionRecord
impl StructuralPartialEq for RetentionRecord
Auto Trait Implementations§
impl Freeze for RetentionRecord
impl RefUnwindSafe for RetentionRecord
impl Send for RetentionRecord
impl Sync for RetentionRecord
impl Unpin for RetentionRecord
impl UnsafeUnpin for RetentionRecord
impl UnwindSafe for RetentionRecord
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