Skip to main content

Expr

Enum Expr 

Source
pub enum Expr {
Show 55 variants Identifier(Identifier), Property { base: Box<Expr>, key: Identifier, }, GraphReference { property_graph: bool, graph: GraphExpression, }, BindingTableReference { binding: bool, table: BindingTableExpression, }, Parameter(String), Literal(Literal), Unary { op: UnaryOp, expr: Box<Expr>, }, Binary { left: Box<Expr>, op: BinaryOp, right: Box<Expr>, }, Function { name: Identifier, quantifier: Option<SetQuantifier>, args: Vec<Expr>, }, SubstringByLength { side: SubstringSide, value: Box<Expr>, length: Box<Expr>, }, Trim { specification: Option<TrimSpec>, trim_character: Option<Box<Expr>>, value: Box<Expr>, }, MultiTrim { specification: TrimSpec, value: Box<Expr>, trim_characters: Option<Box<Expr>>, }, TrimList { value: Box<Expr>, count: Box<Expr>, }, Elements { path: Box<Expr>, }, StringLength { unit: StringLengthUnit, value: Box<Expr>, }, Fold { upper: bool, value: Box<Expr>, }, Normalize { value: Box<Expr>, normal_form: Option<Identifier>, }, CurrentDate, CurrentTime { precision: Option<u64>, }, CurrentTimestamp { precision: Option<u64>, }, CurrentUser, DateTimeFunction { function: DateTimeFunctionKind, value: Option<Box<Expr>>, }, LocalTime { precision: Option<u64>, }, LocalTimestamp { precision: Option<u64>, }, AbsoluteValue { expr: Box<Expr>, }, DurationFunction { value: Box<Expr>, }, DurationBetween { left: Box<Expr>, right: Box<Expr>, }, NumericFunction { function: NumericFunctionKind, args: Vec<Expr>, }, Cast { expr: Box<Expr>, value_type: ValueType, }, ValueQuery { query: Box<QueryStatement>, }, Let { items: Vec<LetItem>, value: Box<Expr>, }, IsTyped { expr: Box<Expr>, negated: bool, value_type: ValueType, }, IsNull { expr: Box<Expr>, negated: bool, }, IsUnknown { expr: Box<Expr>, negated: bool, }, IsTruth { expr: Box<Expr>, negated: bool, value: bool, }, PropertyExists { variable: Identifier, property: Identifier, }, ElementId { variable: Identifier, }, Exists { patterns: Vec<PathPattern>, }, ExistsQuery { query: Box<QueryStatement>, }, ExistsMatch { matches: Vec<MatchClause>, }, Same { variables: Vec<Identifier>, }, AllDifferent { variables: Vec<Identifier>, }, SourceDestination { node: Identifier, negated: bool, kind: SourceDestinationKind, edge: Identifier, }, IsNormalized { expr: Box<Expr>, negated: bool, normal_form: Option<Identifier>, }, IsDirected { variable: Identifier, negated: bool, }, IsLabeled { variable: Identifier, negated: bool, label_expression: LabelExpression, }, Case { operand: Option<Box<Expr>>, when_clauses: Vec<CaseWhenClause>, else_expr: Option<Box<Expr>>, }, Coalesce(Vec<Expr>), NullIf { left: Box<Expr>, right: Box<Expr>, }, List(Vec<Expr>), TypedList { type_name: ListValueTypeName, values: Vec<Expr>, }, Path(Vec<Expr>), Record { explicit: bool, fields: MapLiteral, }, Map(MapLiteral), Wildcard,
}

Variants§

§

Identifier(Identifier)

§

Property

Fields

§base: Box<Expr>
§

GraphReference

Fields

§property_graph: bool
§

BindingTableReference

Fields

§binding: bool
§

Parameter(String)

§

Literal(Literal)

§

Unary

Fields

§expr: Box<Expr>
§

Binary

Fields

§left: Box<Expr>
§right: Box<Expr>
§

Function

Fields

§quantifier: Option<SetQuantifier>
§args: Vec<Expr>
§

SubstringByLength

Fields

§value: Box<Expr>
§length: Box<Expr>
§

Trim

Fields

§specification: Option<TrimSpec>
§trim_character: Option<Box<Expr>>
§value: Box<Expr>
§

MultiTrim

Fields

§specification: TrimSpec
§value: Box<Expr>
§trim_characters: Option<Box<Expr>>
§

TrimList

Fields

§value: Box<Expr>
§count: Box<Expr>
§

Elements

Fields

§path: Box<Expr>
§

StringLength

Fields

§value: Box<Expr>
§

Fold

Fields

§upper: bool
§value: Box<Expr>
§

Normalize

Fields

§value: Box<Expr>
§normal_form: Option<Identifier>
§

CurrentDate

§

CurrentTime

Fields

§precision: Option<u64>
§

CurrentTimestamp

Fields

§precision: Option<u64>
§

CurrentUser

§

DateTimeFunction

Fields

§value: Option<Box<Expr>>
§

LocalTime

Fields

§precision: Option<u64>
§

LocalTimestamp

Fields

§precision: Option<u64>
§

AbsoluteValue

Fields

§expr: Box<Expr>
§

DurationFunction

Fields

§value: Box<Expr>
§

DurationBetween

Fields

§left: Box<Expr>
§right: Box<Expr>
§

NumericFunction

Fields

§args: Vec<Expr>
§

Cast

Fields

§expr: Box<Expr>
§value_type: ValueType
§

ValueQuery

Fields

§

Let

Fields

§items: Vec<LetItem>
§value: Box<Expr>
§

IsTyped

Fields

§expr: Box<Expr>
§negated: bool
§value_type: ValueType
§

IsNull

Fields

§expr: Box<Expr>
§negated: bool
§

IsUnknown

Fields

§expr: Box<Expr>
§negated: bool
§

IsTruth

Fields

§expr: Box<Expr>
§negated: bool
§value: bool
§

PropertyExists

Fields

§variable: Identifier
§property: Identifier
§

ElementId

Fields

§variable: Identifier
§

Exists

Fields

§patterns: Vec<PathPattern>
§

ExistsQuery

Fields

§

ExistsMatch

Fields

§matches: Vec<MatchClause>
§

Same

Fields

§variables: Vec<Identifier>
§

AllDifferent

Fields

§variables: Vec<Identifier>
§

SourceDestination

§

IsNormalized

Fields

§expr: Box<Expr>
§negated: bool
§normal_form: Option<Identifier>
§

IsDirected

Fields

§variable: Identifier
§negated: bool
§

IsLabeled

Fields

§variable: Identifier
§negated: bool
§label_expression: LabelExpression
§

Case

Fields

§operand: Option<Box<Expr>>
§when_clauses: Vec<CaseWhenClause>
§else_expr: Option<Box<Expr>>
§

Coalesce(Vec<Expr>)

§

NullIf

Fields

§left: Box<Expr>
§right: Box<Expr>
§

List(Vec<Expr>)

§

TypedList

Fields

§values: Vec<Expr>
§

Path(Vec<Expr>)

§

Record

Fields

§explicit: bool
§fields: MapLiteral
§

Map(MapLiteral)

§

Wildcard

Trait Implementations§

Source§

impl Clone for Expr

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Expr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Expr

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Expr

Auto Trait Implementations§

§

impl Freeze 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.