pub struct InteractionSummary {
pub interaction_id: InteractionId,
pub kind: InteractionKind,
pub blocking: bool,
pub title: String,
pub body: String,
pub options: Vec<OptionSummary>,
}Expand description
The next interaction as summarized for the narrator.
Fields§
§interaction_id: InteractionIdThe interaction.
kind: InteractionKindShape.
blocking: boolWhether it blocks the case.
title: StringWhat the card asks, in the reader’s locale: the narrator reads the exact string
the user reads beside it, as it does a receipt’s. Resolved here rather than carried
as crate::locale::LocalizedText, for the reason ReceiptSummary::of gives.
body: StringThe card’s own body, in the reader’s locale. Empty when it has none.
See Self::title.
options: Vec<OptionSummary>Options with labels resolved for the turn’s locale.
Trait Implementations§
Source§impl Clone for InteractionSummary
impl Clone for InteractionSummary
Source§impl Debug for InteractionSummary
impl Debug for InteractionSummary
Source§impl<'de> Deserialize<'de> for InteractionSummary
impl<'de> Deserialize<'de> for InteractionSummary
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 InteractionSummary
Source§impl PartialEq for InteractionSummary
impl PartialEq for InteractionSummary
Source§impl Serialize for InteractionSummary
impl Serialize for InteractionSummary
impl StructuralPartialEq for InteractionSummary
Auto Trait Implementations§
impl Freeze for InteractionSummary
impl RefUnwindSafe for InteractionSummary
impl Send for InteractionSummary
impl Sync for InteractionSummary
impl Unpin for InteractionSummary
impl UnsafeUnpin for InteractionSummary
impl UnwindSafe for InteractionSummary
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.