pub struct ActiveInteractionSummary {
pub interaction_id: InteractionId,
pub case_ref: CaseRef,
pub kind: InteractionKind,
pub blocking: bool,
pub option_ids: Vec<OptionId>,
pub text_resolution: TextResolutionPolicy,
pub confirms_risk: RiskClass,
pub payload_hash: Digest,
}Expand description
What the reducer needs to know about an active interaction.
Fields§
§interaction_id: InteractionIdThe interaction.
case_ref: CaseRefCase and bound revision.
kind: InteractionKindShape.
blocking: boolWhether it owns unqualified answers for the case.
option_ids: Vec<OptionId>Stored option ids (for validating interpreted options).
text_resolution: TextResolutionPolicyWhether typed text may resolve it.
confirms_risk: RiskClassHighest risk class an answer authorizes, so the reducer can apply rule 8 without loading the journaled commands. Conservative by default.
payload_hash: DigestHash of the payload the user saw.
Implementations§
Source§impl ActiveInteractionSummary
impl ActiveInteractionSummary
Sourcepub fn accepts_text_resolution(&self) -> bool
pub fn accepts_text_resolution(&self) -> bool
Returns true when typed text may resolve this card at all: the stored
policy allows it and what it confirms is low risk (spec §13.2 rule
8, §15.7).
Trait Implementations§
Source§impl Clone for ActiveInteractionSummary
impl Clone for ActiveInteractionSummary
Source§impl Debug for ActiveInteractionSummary
impl Debug for ActiveInteractionSummary
Source§impl<'de> Deserialize<'de> for ActiveInteractionSummary
impl<'de> Deserialize<'de> for ActiveInteractionSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ActiveInteractionSummary
Source§impl PartialEq for ActiveInteractionSummary
impl PartialEq for ActiveInteractionSummary
Source§impl Serialize for ActiveInteractionSummary
impl Serialize for ActiveInteractionSummary
impl StructuralPartialEq for ActiveInteractionSummary
Auto Trait Implementations§
impl Freeze for ActiveInteractionSummary
impl RefUnwindSafe for ActiveInteractionSummary
impl Send for ActiveInteractionSummary
impl Sync for ActiveInteractionSummary
impl Unpin for ActiveInteractionSummary
impl UnsafeUnpin for ActiveInteractionSummary
impl UnwindSafe for ActiveInteractionSummary
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.