pub struct PhraseResultStateChange {
pub common: PhraseResultCommon,
pub changes: Option<Vec<Phrase>>,
pub triggers: Option<Vec<Trigger>>,
pub violated: bool,
pub violations: Option<Vec<Violation>>,
}
Expand description
Defines state changes that are induced after executing a Phrase.
Fields§
§common: PhraseResultCommon
The common fields of any PhraseResult
.
changes: Option<Vec<Phrase>>
The list of changes given by the server, encoded as phrases necessary to re-create this state. If omitted, then the server does not want to share this (and is thus different than a [Some(...)
] with an empty list).
triggers: Option<Vec<Trigger>>
Any Acts or Events that have been triggered by the phrase. If omitted, then the server does not want to share this (and is thus different than a [Some(...)
] with an empty list).
violated: bool
Whether or not the given phrase triggered any violations.
violations: Option<Vec<Violation>>
Any Acts, Duties or Invariants that have been violated by the phrase. If omitted, then the server does not want to share this (and is thus different than a [Some(...)
] with an empty list).
Trait Implementations§
Source§impl Clone for PhraseResultStateChange
impl Clone for PhraseResultStateChange
Source§fn clone(&self) -> PhraseResultStateChange
fn clone(&self) -> PhraseResultStateChange
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PhraseResultStateChange
impl Debug for PhraseResultStateChange
Source§impl<'de> Deserialize<'de> for PhraseResultStateChange
impl<'de> Deserialize<'de> for PhraseResultStateChange
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
Auto Trait Implementations§
impl Freeze for PhraseResultStateChange
impl RefUnwindSafe for PhraseResultStateChange
impl Send for PhraseResultStateChange
impl Sync for PhraseResultStateChange
impl Unpin for PhraseResultStateChange
impl UnwindSafe for PhraseResultStateChange
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