pub struct CommitmentContext<'a> {
pub policy: &'a PolicyDefinition,
pub participants: &'a [String],
pub outcome_positive: bool,
pub mode: CommitmentMode<'a>,
}Expand description
Everything a policy evaluator may consult when gating a commitment.
Built by the mode at commitment time. outcome_positive comes from the
validated CommitmentPayload and makes every mode’s evaluation
outcome-aware: a negative (decline) commitment is a legitimate terminal
outcome and must not be denied by checks that only make sense for positive
outcomes (RFC-MACP-0007 §6 and the schema_version 2 decline semantics).
Fields§
§policy: &'a PolicyDefinition§participants: &'a [String]§outcome_positive: bool§mode: CommitmentMode<'a>Auto Trait Implementations§
impl<'a> Freeze for CommitmentContext<'a>
impl<'a> RefUnwindSafe for CommitmentContext<'a>
impl<'a> Send for CommitmentContext<'a>
impl<'a> Sync for CommitmentContext<'a>
impl<'a> Unpin for CommitmentContext<'a>
impl<'a> UnsafeUnpin for CommitmentContext<'a>
impl<'a> UnwindSafe for CommitmentContext<'a>
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