pub struct RelationshipRecord {
pub id: u64,
pub src: u64,
pub dst: u64,
pub rel_type: String,
pub properties: BTreeMap<String, PropertyValue>,
}Fields§
§id: u64§src: u64§dst: u64§rel_type: String§properties: BTreeMap<String, PropertyValue>Implementations§
Source§impl RelationshipRecord
impl RelationshipRecord
pub fn property(&self, key: &str) -> Option<&PropertyValue>
pub fn other_node(&self, node_id: u64) -> Option<u64>
pub fn matches_direction_from(&self, node_id: u64, direction: Direction) -> bool
Trait Implementations§
Source§impl Clone for RelationshipRecord
impl Clone for RelationshipRecord
Source§fn clone(&self) -> RelationshipRecord
fn clone(&self) -> RelationshipRecord
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 moreSource§impl Debug for RelationshipRecord
impl Debug for RelationshipRecord
Source§impl<'de> Deserialize<'de> for RelationshipRecord
impl<'de> Deserialize<'de> for RelationshipRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RelationshipRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RelationshipRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RelationshipRecord
impl PartialEq for RelationshipRecord
Source§fn eq(&self, other: &RelationshipRecord) -> bool
fn eq(&self, other: &RelationshipRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RelationshipRecord
impl Serialize for RelationshipRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RelationshipRecord
Auto Trait Implementations§
impl Freeze for RelationshipRecord
impl RefUnwindSafe for RelationshipRecord
impl Send for RelationshipRecord
impl Sync for RelationshipRecord
impl Unpin for RelationshipRecord
impl UnsafeUnpin for RelationshipRecord
impl UnwindSafe for RelationshipRecord
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