pub struct ApprovalState {Show 13 fields
pub session_id: SessionId,
pub approval_id: ApprovalId,
pub request_revision: u64,
pub operation_fingerprint: OperationFingerprint,
pub trigger: ApprovalTrigger,
pub normalized_arguments_digest: Sha256Digest,
pub execution_context_digest: Sha256Digest,
pub capability_lifetime: PreparedCapabilityLifetime,
pub capabilities: Vec<ApprovalCapability>,
pub resources: Vec<PreparedApprovalResource>,
pub evaluations: Vec<ApprovalEvaluation>,
pub constraints: ApprovalConstraints,
pub escalated: bool,
}Expand description
One durable approval request projected for internal evaluation and, only after escalation, possible user interaction.
Fields§
§session_id: SessionId§approval_id: ApprovalId§request_revision: u64§operation_fingerprint: OperationFingerprint§trigger: ApprovalTrigger§normalized_arguments_digest: Sha256Digest§execution_context_digest: Sha256Digest§capability_lifetime: PreparedCapabilityLifetime§capabilities: Vec<ApprovalCapability>§resources: Vec<PreparedApprovalResource>§evaluations: Vec<ApprovalEvaluation>§constraints: ApprovalConstraints§escalated: boolTrait Implementations§
Source§impl Clone for ApprovalState
impl Clone for ApprovalState
Source§fn clone(&self) -> ApprovalState
fn clone(&self) -> ApprovalState
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 moreAuto Trait Implementations§
impl Freeze for ApprovalState
impl RefUnwindSafe for ApprovalState
impl Send for ApprovalState
impl Sync for ApprovalState
impl Unpin for ApprovalState
impl UnsafeUnpin for ApprovalState
impl UnwindSafe for ApprovalState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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