#[non_exhaustive]pub enum OutcomeView {
Jump {
target: String,
args: Vec<String>,
},
Value {
template: String,
wake: Option<String>,
},
Ask {
name: String,
payload: Option<String>,
target: String,
args: Vec<String>,
},
Ignore,
}Expand description
What a branch does, with each expression as written.
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.
Jump
target(args).
Value
A value, and when to wake.
Ask
ask name(payload) -> target(args).
Fields
Ignore
ignore.
Trait Implementations§
Source§impl Clone for OutcomeView
impl Clone for OutcomeView
Source§impl Debug for OutcomeView
impl Debug for OutcomeView
Source§impl PartialEq for OutcomeView
impl PartialEq for OutcomeView
impl StructuralPartialEq for OutcomeView
Auto Trait Implementations§
impl Freeze for OutcomeView
impl RefUnwindSafe for OutcomeView
impl Send for OutcomeView
impl Sync for OutcomeView
impl Unpin for OutcomeView
impl UnsafeUnpin for OutcomeView
impl UnwindSafe for OutcomeView
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