pub enum BranchCondition {
Expression(String),
ModelDecision,
}Expand description
How a BranchCase is selected. Modeled as data; not evaluated in this
crate.
Adjacently tagged ({"kind": "...", "value": ...}) so it stays additive:
a future condition kind is a new variant, which does not change how an
existing document encodes.
Variants§
Expression(String)
A constrained boolean expression over the routed value, recorded as an opaque string. NOT parsed or evaluated in this crate.
ModelDecision
The case is chosen by a model decision at run time, recorded as an event. Carries no author-time data.
Trait Implementations§
Source§impl Clone for BranchCondition
impl Clone for BranchCondition
Source§fn clone(&self) -> BranchCondition
fn clone(&self) -> BranchCondition
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 BranchCondition
impl Debug for BranchCondition
Source§impl<'de> Deserialize<'de> for BranchCondition
impl<'de> Deserialize<'de> for BranchCondition
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 BranchCondition
impl JsonSchema for BranchCondition
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 BranchCondition
impl PartialEq for BranchCondition
Source§impl Serialize for BranchCondition
impl Serialize for BranchCondition
impl StructuralPartialEq for BranchCondition
Auto Trait Implementations§
impl Freeze for BranchCondition
impl RefUnwindSafe for BranchCondition
impl Send for BranchCondition
impl Sync for BranchCondition
impl Unpin for BranchCondition
impl UnsafeUnpin for BranchCondition
impl UnwindSafe for BranchCondition
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