pub enum Expression {
Input,
Literal {
value: Value,
},
Binding {
name: String,
},
Object {
fields: BTreeMap<String, Expression>,
},
Array {
items: Vec<Expression>,
},
}Expand description
Pure expressions over input, prior bindings, and literals.
Variants§
Input
Definition input.
Literal
Literal canonical JSON.
Binding
A prior binding.
Object
An object constructed from expressions.
Fields
§
fields: BTreeMap<String, Expression>Deterministically ordered fields.
Array
An array constructed from expressions.
Fields
§
items: Vec<Expression>Array items.
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§impl Debug for Expression
impl Debug for Expression
Source§impl<'de> Deserialize<'de> for Expression
impl<'de> Deserialize<'de> for Expression
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 Expression
impl PartialEq for Expression
Source§impl Serialize for Expression
impl Serialize for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnsafeUnpin for Expression
impl UnwindSafe for Expression
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