pub enum FlowDirectiveValue {
Enumerated(FlowDirectiveType),
Custom(String),
}Expand description
Represents a typed flow directive that can be an enumerated value or a custom string
Variants§
Enumerated(FlowDirectiveType)
One of the standard enumerated flow directives
Custom(String)
A custom/free-form flow directive string
Implementations§
Source§impl FlowDirectiveValue
impl FlowDirectiveValue
Sourcepub fn is_enumerated(&self) -> bool
pub fn is_enumerated(&self) -> bool
Checks if this is one of the standard enumerated values
Sourcepub fn is_termination(&self) -> bool
pub fn is_termination(&self) -> bool
Checks if this flow directive represents a termination (exit or end)
Trait Implementations§
Source§impl Clone for FlowDirectiveValue
impl Clone for FlowDirectiveValue
Source§fn clone(&self) -> FlowDirectiveValue
fn clone(&self) -> FlowDirectiveValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FlowDirectiveValue
impl Debug for FlowDirectiveValue
Source§impl Default for FlowDirectiveValue
impl Default for FlowDirectiveValue
Source§impl<'de> Deserialize<'de> for FlowDirectiveValue
impl<'de> Deserialize<'de> for FlowDirectiveValue
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 FlowDirectiveValue
impl PartialEq for FlowDirectiveValue
Source§fn eq(&self, other: &FlowDirectiveValue) -> bool
fn eq(&self, other: &FlowDirectiveValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FlowDirectiveValue
impl Serialize for FlowDirectiveValue
impl Eq for FlowDirectiveValue
impl StructuralPartialEq for FlowDirectiveValue
Auto Trait Implementations§
impl Freeze for FlowDirectiveValue
impl RefUnwindSafe for FlowDirectiveValue
impl Send for FlowDirectiveValue
impl Sync for FlowDirectiveValue
impl Unpin for FlowDirectiveValue
impl UnsafeUnpin for FlowDirectiveValue
impl UnwindSafe for FlowDirectiveValue
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