pub struct RelatedExpr {
pub target_labels: Vec<String>,
pub alias: Option<String>,
pub rel_type: Option<String>,
pub direction: Direction,
pub hops: Option<(u64, u64)>,
pub cycle: bool,
pub filter: Option<Box<Expr>>,
}Expand description
Traversal predicate mirroring the documented relationship syntax.
Fields§
§target_labels: Vec<String>Labels an endpoint record must carry (empty = any label).
alias: Option<String>Optional $alias binding for the endpoint, used by $count/$sum/$collect.
rel_type: Option<String>Relationship type filter; None matches every relation type.
direction: DirectionEdge direction to traverse.
hops: Option<(u64, u64)>Variable-length traversal bounds (min, max); absent = one hop.
cycle: bool$cycle: true when the traversal must return to the start record.
filter: Option<Box<Expr>>Predicates evaluated on the endpoint record (may nest further
RelatedExpr children for multi-level blocks).
Trait Implementations§
Source§impl Clone for RelatedExpr
impl Clone for RelatedExpr
Source§impl Debug for RelatedExpr
impl Debug for RelatedExpr
Source§impl<'de> Deserialize<'de> for RelatedExpr
impl<'de> Deserialize<'de> for RelatedExpr
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 RelatedExpr
impl PartialEq for RelatedExpr
Source§impl Serialize for RelatedExpr
impl Serialize for RelatedExpr
impl StructuralPartialEq for RelatedExpr
Auto Trait Implementations§
impl Freeze for RelatedExpr
impl RefUnwindSafe for RelatedExpr
impl Send for RelatedExpr
impl Sync for RelatedExpr
impl Unpin for RelatedExpr
impl UnsafeUnpin for RelatedExpr
impl UnwindSafe for RelatedExpr
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