pub struct NodePattern {
pub variable: Option<SmallName>,
pub label_expr: Option<LabelExpr>,
pub properties: Vec<(SmallName, Expr)>,
pub has_properties: bool,
pub properties_param: Option<Expr>,
pub where_expr: Option<Expr>,
}Expand description
A node pattern like (n:Label {prop: value}).
Fields§
§variable: Option<SmallName>§label_expr: Option<LabelExpr>§properties: Vec<(SmallName, Expr)>§has_properties: bool§properties_param: Option<Expr>The $paramName whole-property-map shorthand (an alternative to
{...}), e.g. CREATE (n:Label $props). Mutually exclusive with
properties/has_properties – the parser only ever populates one
property-map form per pattern element.
where_expr: Option<Expr>The element-pattern WHERE of (n WHERE <expr>) (CIP-14 “node
element pattern” location), evaluated once variable is bound.
Trait Implementations§
Source§impl Clone for NodePattern
impl Clone for NodePattern
Source§impl Debug for NodePattern
impl Debug for NodePattern
Source§impl PartialEq for NodePattern
impl PartialEq for NodePattern
impl StructuralPartialEq for NodePattern
Auto Trait Implementations§
impl Forget for NodePattern
impl Freeze for NodePattern
impl Move for NodePattern
impl RefUnwindSafe for NodePattern
impl Send for NodePattern
impl Sync for NodePattern
impl Unpin for NodePattern
impl UnsafeUnpin for NodePattern
impl UnwindSafe for NodePattern
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