pub enum JSONExpression {
Arithmetic(Box<JSONExpression>, JSONArithmeticOp, Box<JSONExpression>),
Relation(Box<JSONExpression>, JSONRelationOp, Box<JSONExpression>),
Ternary(Box<JSONExpression>, Box<JSONExpression>, Box<JSONExpression>),
Or(Box<JSONExpression>, Box<JSONExpression>),
And(Box<JSONExpression>, Box<JSONExpression>),
Unary(JSONUnaryOp, Box<JSONExpression>),
Member(Box<JSONExpression>, Box<JSONMember>),
FunctionCall(Box<JSONExpression>, Option<Box<JSONExpression>>, Vec<JSONExpression>),
List(Vec<JSONExpression>),
Map(Vec<(JSONExpression, JSONExpression)>),
Atom(JSONAtom),
Ident(String),
}Variants§
Arithmetic(Box<JSONExpression>, JSONArithmeticOp, Box<JSONExpression>)
Relation(Box<JSONExpression>, JSONRelationOp, Box<JSONExpression>)
Ternary(Box<JSONExpression>, Box<JSONExpression>, Box<JSONExpression>)
Or(Box<JSONExpression>, Box<JSONExpression>)
And(Box<JSONExpression>, Box<JSONExpression>)
Unary(JSONUnaryOp, Box<JSONExpression>)
Member(Box<JSONExpression>, Box<JSONMember>)
FunctionCall(Box<JSONExpression>, Option<Box<JSONExpression>>, Vec<JSONExpression>)
List(Vec<JSONExpression>)
Map(Vec<(JSONExpression, JSONExpression)>)
Atom(JSONAtom)
Ident(String)
Trait Implementations§
Source§impl Clone for JSONExpression
impl Clone for JSONExpression
Source§fn clone(&self) -> JSONExpression
fn clone(&self) -> JSONExpression
Returns a copy of the value. Read more
1.0.0 · 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 JSONExpression
impl Debug for JSONExpression
Source§impl<'de> Deserialize<'de> for JSONExpression
impl<'de> Deserialize<'de> for JSONExpression
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 From<Expression> for JSONExpression
impl From<Expression> for JSONExpression
Source§fn from(expr: Expression) -> Self
fn from(expr: Expression) -> Self
Converts to this type from the input type.
Source§impl From<JSONExpression> for Expression
impl From<JSONExpression> for Expression
Source§fn from(expr: JSONExpression) -> Self
fn from(expr: JSONExpression) -> Self
Converts to this type from the input type.
Source§impl PartialEq for JSONExpression
impl PartialEq for JSONExpression
Source§impl Serialize for JSONExpression
impl Serialize for JSONExpression
impl StructuralPartialEq for JSONExpression
Auto Trait Implementations§
impl Freeze for JSONExpression
impl RefUnwindSafe for JSONExpression
impl Send for JSONExpression
impl Sync for JSONExpression
impl Unpin for JSONExpression
impl UnwindSafe for JSONExpression
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