pub struct EdgePattern {
pub variable: Option<String>,
pub types: Vec<String>,
pub direction: EdgeDirection,
pub target: NodePattern,
pub min_hops: Option<u32>,
pub max_hops: Option<u32>,
pub properties: Vec<(String, Expression)>,
pub where_clause: Option<Expression>,
pub questioned: bool,
pub span: Option<SourceSpan>,
}Expand description
An edge pattern like -[:KNOWS]-> or -[:KNOWS*1..3]->.
Fields§
§variable: Option<String>Variable name (optional).
types: Vec<String>Edge types to match.
direction: EdgeDirectionDirection of the edge.
target: NodePatternTarget node pattern.
min_hops: Option<u32>Variable-length path: minimum hops (None means 1).
max_hops: Option<u32>Variable-length path: maximum hops (None means unlimited or same as min).
properties: Vec<(String, Expression)>Property filters for the edge.
where_clause: Option<Expression>Element pattern WHERE clause: -[e WHERE e.weight > 5]->.
questioned: boolQuestioned edge: ->? means “optional” (0 or 1 hop).
span: Option<SourceSpan>Source span.
Trait Implementations§
Source§impl Clone for EdgePattern
impl Clone for EdgePattern
Source§fn clone(&self) -> EdgePattern
fn clone(&self) -> EdgePattern
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for EdgePattern
impl RefUnwindSafe for EdgePattern
impl Send for EdgePattern
impl Sync for EdgePattern
impl Unpin for EdgePattern
impl UnsafeUnpin for EdgePattern
impl UnwindSafe for EdgePattern
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more