pub struct DecideApproval {
pub context: InteractionMutationContext,
pub session_id: SessionId,
pub run_id: RunId,
pub approval_id: String,
pub decision: ApprovalDecision,
}Expand description
Atomic approval-decision command.
Fields§
§context: InteractionMutationContextShared mutation evidence.
session_id: SessionIdOwning session.
run_id: RunIdOwning run.
approval_id: StringApproval identity.
decision: ApprovalDecisionTerminal decision to persist. Only approved and denied are accepted.
Implementations§
Source§impl DecideApproval
impl DecideApproval
Sourcepub fn validate(&self) -> SessionStoreResult<()>
pub fn validate(&self) -> SessionStoreResult<()>
Validate command-local invariants.
§Errors
Returns an error when shared evidence is invalid, the id is empty, the decision is not approved/denied, or the decision timestamp differs from the mutation timestamp.
Trait Implementations§
Source§impl Clone for DecideApproval
impl Clone for DecideApproval
Source§fn clone(&self) -> DecideApproval
fn clone(&self) -> DecideApproval
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 DecideApproval
impl Debug for DecideApproval
impl Eq for DecideApproval
Source§impl PartialEq for DecideApproval
impl PartialEq for DecideApproval
impl StructuralPartialEq for DecideApproval
Auto Trait Implementations§
impl Freeze for DecideApproval
impl RefUnwindSafe for DecideApproval
impl Send for DecideApproval
impl Sync for DecideApproval
impl Unpin for DecideApproval
impl UnsafeUnpin for DecideApproval
impl UnwindSafe for DecideApproval
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