Enum barley_runtime::ActionOutput
source · 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 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 moreAuto Trait Implementations§
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