pub struct IfStepIR {
pub kind: IfKind,
pub base: StepBase,
pub cond: Expr,
pub then: Vec<StepIR>,
pub else: Option<Vec<StepIR>>,
}Expand description
If step (02 §4.5): conditional container. Container hashes exclude the subtree — child steps carry their own identity and hashes (02 §12.3).
Fields§
§kind: IfKindConst "if".
base: StepBaseCommon step envelope (flattened on the wire).
cond: ExprThe branch condition.
then: Vec<StepIR>Steps executed when the condition holds (≥ 1).
else: Option<Vec<StepIR>>Steps executed otherwise (≥ 1 when present). Unselected branch steps
are skipped.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IfStepIR
impl<'de> Deserialize<'de> for IfStepIR
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 IfStepIR
impl JsonSchema for IfStepIR
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 moreimpl StructuralPartialEq for IfStepIR
Auto Trait Implementations§
impl Freeze for IfStepIR
impl RefUnwindSafe for IfStepIR
impl Send for IfStepIR
impl Sync for IfStepIR
impl Unpin for IfStepIR
impl UnsafeUnpin for IfStepIR
impl UnwindSafe for IfStepIR
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