pub struct RelatedSpec {
pub alias: Option<String>,
pub rel_type: Option<String>,
pub direction: Direction,
pub target_labels: Vec<String>,
pub steps: Vec<TraversalStep>,
}Expand description
A root-bound traversal branch declared under related or a where alias.
Fields§
§alias: Option<String>Alias the branch is bound to (without leading $).
rel_type: Option<String>Relationship type filter for the final step; None matches any type.
direction: DirectionEdge direction for the final step.
target_labels: Vec<String>Labels the final-step endpoint must carry (empty = any).
steps: Vec<TraversalStep>The full traversal path from the root record to this spec’s level
(ancestors first; the last step is the spec’s own level). Each step
carries that level’s label/rel-type/direction and endpoint predicates,
so alias $count/$sum/$collect match the reference: multi-hop
aliases traverse every level and apply each level’s where filter.
Trait Implementations§
Source§impl Clone for RelatedSpec
impl Clone for RelatedSpec
Source§impl Debug for RelatedSpec
impl Debug for RelatedSpec
Source§impl<'de> Deserialize<'de> for RelatedSpec
impl<'de> Deserialize<'de> for RelatedSpec
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 RelatedSpec
impl PartialEq for RelatedSpec
Source§impl Serialize for RelatedSpec
impl Serialize for RelatedSpec
impl StructuralPartialEq for RelatedSpec
Auto Trait Implementations§
impl Freeze for RelatedSpec
impl RefUnwindSafe for RelatedSpec
impl Send for RelatedSpec
impl Sync for RelatedSpec
impl Unpin for RelatedSpec
impl UnsafeUnpin for RelatedSpec
impl UnwindSafe for RelatedSpec
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