pub enum Expr {
Show 13 variants
Literal {
value: Value,
},
Input {
path: Vec<String>,
},
Step {
step: String,
path: Vec<String>,
},
Execution {
field: String,
},
Local {
name: String,
path: Vec<String>,
},
Index {
target: Box<Expr>,
index: Box<Expr>,
},
Object {
fields: Vec<ObjectField>,
},
List {
items: Vec<Expr>,
},
Binary {
operator: BinOp,
left: Box<Expr>,
right: Box<Expr>,
},
Unary {
operator: UnOp,
operand: Box<Expr>,
},
If {
condition: Box<Expr>,
then: Box<Expr>,
otherwise: Box<Expr>,
},
Call {
function: String,
args: Vec<Expr>,
},
Lambda {
param: String,
body: Box<Expr>,
},
}Variants§
Literal
Input
input.a.b
Step
<step>.a.b — the output of a completed (or skipped → null) step.
Execution
execution.id, execution.workflow, execution.version
Local
A loop variable bound by for <name> in ..., with an optional field path.
Index
Object
Fields
§
fields: Vec<ObjectField>List
Binary
Unary
If
Call
Lambda
x => body, only as an argument of map, filter, any, all and
find. The parameter is read in body as a Local.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Expr
impl<'de> Deserialize<'de> for Expr
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
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Forget for Expr
impl Freeze for Expr
impl Move for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
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