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 · 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 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