#[non_exhaustive]pub struct AcceptedInteraction {
pub response: AcceptedResponse,
pub record: InteractionRecord,
}Expand description
A client answer that passed every §15.5 rule and holds the card in
Resolving.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.response: AcceptedResponseThe validated answer.
record: InteractionRecordThe stored record, now in Resolving.
Implementations§
Source§impl AcceptedInteraction
impl AcceptedInteraction
Sourcepub fn origin(&self) -> Option<CommandOrigin>
pub fn origin(&self) -> Option<CommandOrigin>
The command origin the answer authorizes, or None when it authorizes
nothing (a selection, a clarification, a dismissal).
Sourcepub fn case_ref(&self) -> &CaseRef
pub fn case_ref(&self) -> &CaseRef
The case the card belongs to, at the revision it was bound to.
Sourcepub fn interaction_id(&self) -> InteractionId
pub fn interaction_id(&self) -> InteractionId
The interaction identifier.
Trait Implementations§
Source§impl Clone for AcceptedInteraction
impl Clone for AcceptedInteraction
Auto Trait Implementations§
impl Freeze for AcceptedInteraction
impl RefUnwindSafe for AcceptedInteraction
impl Send for AcceptedInteraction
impl Sync for AcceptedInteraction
impl Unpin for AcceptedInteraction
impl UnsafeUnpin for AcceptedInteraction
impl UnwindSafe for AcceptedInteraction
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