pub struct OperatorRecord { /* private fields */ }Expand description
One append-only operator audit and idempotency record.
Implementations§
Source§impl OperatorRecord
impl OperatorRecord
Sourcepub fn from_parts(
id: OperatorRequestId,
draft: OperatorRecordDraft,
) -> OperatorRecord
pub fn from_parts( id: OperatorRequestId, draft: OperatorRecordDraft, ) -> OperatorRecord
Rebuilds a record read from a durable adapter.
Sourcepub const fn id(&self) -> OperatorRequestId
pub const fn id(&self) -> OperatorRequestId
Returns the opaque record identifier.
Sourcepub const fn action(&self) -> OperatorAction
pub const fn action(&self) -> OperatorAction
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) -> Option<&ReasonCode>
pub const fn reason(&self) -> Option<&ReasonCode>
Borrows the closed-set reason code, when the action required one.
Sourcepub const fn digest(&self) -> &RequestDigest
pub const fn digest(&self) -> &RequestDigest
Returns the recorded canonical request digest.
Sourcepub const fn job_instance_id(&self) -> Option<JobInstanceId>
pub const fn job_instance_id(&self) -> Option<JobInstanceId>
Returns the audited logical instance, when the action named one.
Sourcepub const fn job_execution_id(&self) -> Option<JobExecutionId>
pub const fn job_execution_id(&self) -> Option<JobExecutionId>
Returns the audited execution, when the action produced or named one.
Sourcepub const fn observed_version(&self) -> Option<ExecutionVersion>
pub const fn observed_version(&self) -> Option<ExecutionVersion>
Returns the version observed under lock.
Sourcepub const fn prior_status(&self) -> Option<BatchStatus>
pub const fn prior_status(&self) -> Option<BatchStatus>
Returns the status observed before the effect.
Sourcepub const fn result_status(&self) -> Option<BatchStatus>
pub const fn result_status(&self) -> Option<BatchStatus>
Returns the status the effect produced.
Sourcepub const fn outcome(&self) -> OperatorOutcomeClass
pub const fn outcome(&self) -> OperatorOutcomeClass
Returns the recorded outcome class.
Sourcepub const fn rejection(&self) -> Option<OperatorRejection>
pub const fn rejection(&self) -> Option<OperatorRejection>
Returns the recorded rejection class, when the action was rejected.
Sourcepub const fn requested_at(&self) -> SystemTime
pub const fn requested_at(&self) -> SystemTime
Returns the facade-clock instant recorded with the request.
Trait Implementations§
Source§impl Clone for OperatorRecord
impl Clone for OperatorRecord
Source§fn clone(&self) -> OperatorRecord
fn clone(&self) -> OperatorRecord
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 OperatorRecord
impl Debug for OperatorRecord
impl Eq for OperatorRecord
Source§impl PartialEq for OperatorRecord
impl PartialEq for OperatorRecord
impl StructuralPartialEq for OperatorRecord
Auto Trait Implementations§
impl Freeze for OperatorRecord
impl RefUnwindSafe for OperatorRecord
impl Send for OperatorRecord
impl Sync for OperatorRecord
impl Unpin for OperatorRecord
impl UnsafeUnpin for OperatorRecord
impl UnwindSafe for OperatorRecord
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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