pub struct Segment {Show 13 fields
pub var: String,
pub path: Option<String>,
pub edges: TableReference,
pub source: String,
pub destination: String,
pub start: String,
pub start_key: VarColumn,
pub end: String,
pub end_key: VarColumn,
pub direction: Direction,
pub quantifier: Quantifier,
pub selector: Selector,
pub mode: Mode,
}Expand description
An edge searched on the graph index rather than joined: a quantified
edge, or the edge of a path with a path variable, a selector or a mode.
It is a relation of paths, named var, with the columns of
super::path_search: the path’s first and last node, its length, and
its nodes and edges.
Fields§
§var: StringThe relation’s name: the path variable, or an unnamed one.
path: Option<String>The path variable, if the path has one.
edges: TableReferenceThe edge table, and its source and destination columns.
source: String§destination: String§start: StringThe node variables at its two ends, and their keys.
start_key: VarColumn§end: String§end_key: VarColumn§direction: Direction§quantifier: Quantifier§selector: Selector§mode: ModeTrait Implementations§
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl Forget for Segment
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin for Segment
impl UnwindSafe for Segment
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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