pub struct ConditionalBlock {
pub condition: Option<Box<VariableData>>,
pub actions: Vec<Action>,
}
Expand description
ConditionalBlock : Either the if or else conditional blocks. The if block contains a condition to check. If that condition is met then it will run those list of actions, else it will run the actions in the else block.
Fields§
§condition: Option<Box<VariableData>>
§actions: Vec<Action>
Implementations§
Source§impl ConditionalBlock
impl ConditionalBlock
Sourcepub fn new(actions: Vec<Action>) -> ConditionalBlock
pub fn new(actions: Vec<Action>) -> ConditionalBlock
Either the if or else conditional blocks. The if block contains a condition to check. If that condition is met then it will run those list of actions, else it will run the actions in the else block.
Trait Implementations§
Source§impl Clone for ConditionalBlock
impl Clone for ConditionalBlock
Source§fn clone(&self) -> ConditionalBlock
fn clone(&self) -> ConditionalBlock
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 ConditionalBlock
impl Debug for ConditionalBlock
Source§impl Default for ConditionalBlock
impl Default for ConditionalBlock
Source§fn default() -> ConditionalBlock
fn default() -> ConditionalBlock
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConditionalBlock
impl<'de> Deserialize<'de> for ConditionalBlock
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
Source§impl PartialEq for ConditionalBlock
impl PartialEq for ConditionalBlock
Source§impl Serialize for ConditionalBlock
impl Serialize for ConditionalBlock
impl StructuralPartialEq for ConditionalBlock
Auto Trait Implementations§
impl Freeze for ConditionalBlock
impl RefUnwindSafe for ConditionalBlock
impl Send for ConditionalBlock
impl Sync for ConditionalBlock
impl Unpin for ConditionalBlock
impl UnwindSafe for ConditionalBlock
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