pub struct AcceptedResponse {
pub interaction_id: InteractionId,
pub case_ref: CaseRef,
pub kind: InteractionKind,
pub option_id: OptionId,
pub action: StoredInteractionAction,
pub channel: ResolutionChannel,
pub freeform_input: Option<String>,
pub payload_hash: Digest,
}Expand description
A response that passed every §15.5 rule.
Fields§
§interaction_id: InteractionIdThe interaction.
case_ref: CaseRefCase and bound revision.
kind: InteractionKindShape of the card that was answered.
option_id: OptionIdThe chosen option.
action: StoredInteractionActionServer-side meaning of the option.
channel: ResolutionChannelHow the answer reached the server.
freeform_input: Option<String>Free text, when permitted and supplied.
payload_hash: DigestHash of the payload the user saw.
Implementations§
Source§impl AcceptedResponse
impl AcceptedResponse
Sourcepub fn origin(&self) -> Option<CommandOrigin>
pub fn origin(&self) -> Option<CommandOrigin>
The command origin this response authorizes (I12), or None when it
authorizes nothing.
Only an option that actually confirms or applies commands mints an
origin. Picking a case on a SelectTarget card, answering a
clarification or dismissing a card resolves the interaction without
authorizing anything: the runtime must re-run policy for the original
act and raise a fresh confirmation when one is required, instead of
treating the click as consent.
Trait Implementations§
Source§impl Clone for AcceptedResponse
impl Clone for AcceptedResponse
Source§impl Debug for AcceptedResponse
impl Debug for AcceptedResponse
Source§impl<'de> Deserialize<'de> for AcceptedResponse
impl<'de> Deserialize<'de> for AcceptedResponse
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 AcceptedResponse
Source§impl PartialEq for AcceptedResponse
impl PartialEq for AcceptedResponse
Source§impl Serialize for AcceptedResponse
impl Serialize for AcceptedResponse
impl StructuralPartialEq for AcceptedResponse
Auto Trait Implementations§
impl Freeze for AcceptedResponse
impl RefUnwindSafe for AcceptedResponse
impl Send for AcceptedResponse
impl Sync for AcceptedResponse
impl Unpin for AcceptedResponse
impl UnsafeUnpin for AcceptedResponse
impl UnwindSafe for AcceptedResponse
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.