#[non_exhaustive]pub enum Expectation {
AwaitingValue {
act: Box<UnderstoodAct>,
case_ref: Option<CaseRef>,
missing: Vec<String>,
},
AwaitingObligation {
case_ref: CaseRef,
obligation: String,
},
AwaitingOperation {
case_ref: CaseRef,
obligation: String,
act: ObligationAct,
},
StillWaiting {
act: Box<UnderstoodAct>,
case_ref: Option<CaseRef>,
missing: Vec<String>,
},
}Expand description
Something a reply asked for, so the next message can be read as its answer (§6.8).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AwaitingValue
Values an act needs before it can run.
Fields
§
act: Box<UnderstoodAct>The act, with the arguments already given.
AwaitingObligation
An open obligation of a record, which the reply asked about.
AwaitingOperation
An open obligation whose workflow named the act that answers it.
Fields
§
act: ObligationActThe act that answers it.
StillWaiting
An act of an earlier turn still waiting for a record the user named that did not exist, carried until a record registered under that name completes it or the act is done another way. Never what the next message answers.
Trait Implementations§
Source§impl Clone for Expectation
impl Clone for Expectation
Source§impl Debug for Expectation
impl Debug for Expectation
Source§impl<'de> Deserialize<'de> for Expectation
impl<'de> Deserialize<'de> for Expectation
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 Expectation
Source§impl PartialEq for Expectation
impl PartialEq for Expectation
Source§impl Serialize for Expectation
impl Serialize for Expectation
impl StructuralPartialEq for Expectation
Auto Trait Implementations§
impl Freeze for Expectation
impl RefUnwindSafe for Expectation
impl Send for Expectation
impl Sync for Expectation
impl Unpin for Expectation
impl UnsafeUnpin for Expectation
impl UnwindSafe for Expectation
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.