pub struct EdgeArrival {
pub from_id: i64,
pub neighbor_id: i64,
pub source_name: Option<String>,
pub target_name: Option<String>,
pub relation: String,
pub weight: f64,
pub inbound: bool,
}Expand description
The edge through which an entity was reached.
Fields§
§from_id: i64Entity the edge was followed from.
neighbor_id: i64Entity the edge was followed to (the discovered neighbour).
source_name: Option<String>entities.name of the edge’s source_id, when the source was queried with names.
target_name: Option<String>entities.name of the edge’s target_id, when the source was queried with names.
relation: StringRelation label carried by the edge.
weight: f64Edge weight.
inbound: booltrue when the edge was traversed backwards (target_id -> source_id).
Trait Implementations§
Source§impl Clone for EdgeArrival
impl Clone for EdgeArrival
Source§fn clone(&self) -> EdgeArrival
fn clone(&self) -> EdgeArrival
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EdgeArrival
impl RefUnwindSafe for EdgeArrival
impl Send for EdgeArrival
impl Sync for EdgeArrival
impl Unpin for EdgeArrival
impl UnsafeUnpin for EdgeArrival
impl UnwindSafe for EdgeArrival
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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