pub struct Understanding {
pub units: Vec<Unit>,
pub acts: Vec<UnderstoodAct>,
pub superseded: Vec<Superseded>,
pub questions: Vec<UnderstoodQuestion>,
pub constraints: Vec<TurnConstraint>,
pub card_answer: Option<CardAnswer>,
pub disputes: Vec<Dispute>,
pub not_understood: Vec<NotUnderstood>,
pub unreadable: Option<Unreadable>,
}Expand description
Everything a turn was understood to say.
Fields§
§units: Vec<Unit>The units, in message order.
acts: Vec<UnderstoodAct>The acts, in message order.
superseded: Vec<Superseded>Acts replaced or withdrawn by a later unit.
questions: Vec<UnderstoodQuestion>The questions.
constraints: Vec<TurnConstraint>The constraints.
card_answer: Option<CardAnswer>The typed answer to the card on screen.
disputes: Vec<Dispute>The disputes.
not_understood: Vec<NotUnderstood>Units that produced nothing to act on.
unreadable: Option<Unreadable>Set when the message could not be read at all; then nothing else is.
Implementations§
Source§impl Understanding
impl Understanding
Sourcepub fn unreadable(reason: Unreadable) -> Self
pub fn unreadable(reason: Unreadable) -> Self
A message that could not be read: no acts, no questions, only the reason.
Sourcepub fn act(&self, id: ActId) -> Option<&UnderstoodAct>
pub fn act(&self, id: ActId) -> Option<&UnderstoodAct>
The act with this identifier.
Trait Implementations§
Source§impl Clone for Understanding
impl Clone for Understanding
Source§impl Debug for Understanding
impl Debug for Understanding
Source§impl Default for Understanding
impl Default for Understanding
Source§impl<'de> Deserialize<'de> for Understanding
impl<'de> Deserialize<'de> for Understanding
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 Understanding
Source§impl PartialEq for Understanding
impl PartialEq for Understanding
Source§impl Serialize for Understanding
impl Serialize for Understanding
impl StructuralPartialEq for Understanding
Auto Trait Implementations§
impl Freeze for Understanding
impl RefUnwindSafe for Understanding
impl Send for Understanding
impl Sync for Understanding
impl Unpin for Understanding
impl UnsafeUnpin for Understanding
impl UnwindSafe for Understanding
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.