pub struct BranchCase {
pub name: String,
pub when: BranchCondition,
}Expand description
One case of a BranchNode: a name and the condition that selects it.
The realized routing (which downstream node a fired case flows to) is
carried by an Edge whose label matches the case name, so topology
stays entirely in the edge list and a branch has real outbound edges.
Fields§
§name: StringThe case name. An edge labeled with this name realizes the route.
when: BranchConditionThe condition that selects this case. Data only, never evaluated here.
Trait Implementations§
Source§impl Clone for BranchCase
impl Clone for BranchCase
Source§fn clone(&self) -> BranchCase
fn clone(&self) -> BranchCase
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 BranchCase
impl Debug for BranchCase
Source§impl<'de> Deserialize<'de> for BranchCase
impl<'de> Deserialize<'de> for BranchCase
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 JsonSchema for BranchCase
impl JsonSchema for BranchCase
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for BranchCase
impl PartialEq for BranchCase
Source§impl Serialize for BranchCase
impl Serialize for BranchCase
impl StructuralPartialEq for BranchCase
Auto Trait Implementations§
impl Freeze for BranchCase
impl RefUnwindSafe for BranchCase
impl Send for BranchCase
impl Sync for BranchCase
impl Unpin for BranchCase
impl UnsafeUnpin for BranchCase
impl UnwindSafe for BranchCase
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