pub enum ActionOutput {
String(String),
Integer(i64),
Float(f64),
Boolean(bool),
}Expand description
The output of an action.
When an Action is run, it can return a value
back to the context. This value can be used by
other actions depending on said value.
Variants§
String(String)
A string.
Integer(i64)
An integer (i64).
Float(f64)
A floating-point number (f64).
Boolean(bool)
A boolean.
Trait Implementations§
Source§impl Clone for ActionOutput
impl Clone for ActionOutput
Source§fn clone(&self) -> ActionOutput
fn clone(&self) -> ActionOutput
Returns a duplicate 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 ActionOutput
impl Debug for ActionOutput
Source§impl From<&str> for ActionOutput
impl From<&str> for ActionOutput
Source§impl From<String> for ActionOutput
impl From<String> for ActionOutput
Source§impl From<bool> for ActionOutput
impl From<bool> for ActionOutput
Source§impl From<f64> for ActionOutput
impl From<f64> for ActionOutput
Source§impl From<i64> for ActionOutput
impl From<i64> for ActionOutput
Source§impl TryFrom<ActionOutput> for String
impl TryFrom<ActionOutput> for String
Source§type Error = ActionError
type Error = ActionError
The type returned in the event of a conversion error.
Source§impl TryFrom<ActionOutput> for bool
impl TryFrom<ActionOutput> for bool
Source§type Error = ActionError
type Error = ActionError
The type returned in the event of a conversion error.
Source§impl TryFrom<ActionOutput> for f64
impl TryFrom<ActionOutput> for f64
Source§type Error = ActionError
type Error = ActionError
The type returned in the event of a conversion error.
Source§impl TryFrom<ActionOutput> for i64
impl TryFrom<ActionOutput> for i64
Source§type Error = ActionError
type Error = ActionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ActionOutput
impl RefUnwindSafe for ActionOutput
impl Send for ActionOutput
impl Sync for ActionOutput
impl Unpin for ActionOutput
impl UnwindSafe for ActionOutput
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