pub struct RelationshipMetadata {
pub source: String,
pub generated_at: DateTime<Utc>,
pub weight: Option<f64>,
pub valid_from: Option<DateTime<Utc>>,
pub valid_to: Option<DateTime<Utc>>,
pub labels: HashMap<String, String>,
pub features: Option<Vec<f64>>,
pub is_directed: bool,
}Expand description
Metadata for a generated relationship.
Fields§
§source: StringData source.
generated_at: DateTime<Utc>Generation timestamp.
weight: Option<f64>Relationship weight.
valid_from: Option<DateTime<Utc>>Valid from timestamp.
valid_to: Option<DateTime<Utc>>Valid to timestamp.
labels: HashMap<String, String>Custom labels.
features: Option<Vec<f64>>Feature vector for ML.
is_directed: boolWhether the relationship is directed.
Trait Implementations§
Source§impl Clone for RelationshipMetadata
impl Clone for RelationshipMetadata
Source§fn clone(&self) -> RelationshipMetadata
fn clone(&self) -> RelationshipMetadata
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 RelationshipMetadata
impl Debug for RelationshipMetadata
Source§impl Default for RelationshipMetadata
impl Default for RelationshipMetadata
Source§impl<'de> Deserialize<'de> for RelationshipMetadata
impl<'de> Deserialize<'de> for RelationshipMetadata
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
Auto Trait Implementations§
impl Freeze for RelationshipMetadata
impl RefUnwindSafe for RelationshipMetadata
impl Send for RelationshipMetadata
impl Sync for RelationshipMetadata
impl Unpin for RelationshipMetadata
impl UnsafeUnpin for RelationshipMetadata
impl UnwindSafe for RelationshipMetadata
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.