pub enum GraphEdgeType {
Semantic {
cosine_similarity: f32,
},
Temporal {
delta_secs: u64,
},
Causal {
confidence: f32,
evidence_ids: Vec<String>,
},
Entity {
relation: String,
},
}Expand description
Type of relationship between graph nodes.
Variants§
Semantic
Semantic similarity. GraphEdgeType::Semantic variant.
Temporal
Temporal proximity. GraphEdgeType::Temporal variant.
Causal
Causal relationship. GraphEdgeType::Causal variant.
Fields
Entity
Entity co-occurrence. GraphEdgeType::Entity variant.
Trait Implementations§
Source§impl Clone for GraphEdgeType
impl Clone for GraphEdgeType
Source§fn clone(&self) -> GraphEdgeType
fn clone(&self) -> GraphEdgeType
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 GraphEdgeType
impl Debug for GraphEdgeType
Source§impl<'de> Deserialize<'de> for GraphEdgeType
impl<'de> Deserialize<'de> for GraphEdgeType
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 GraphEdgeType
impl RefUnwindSafe for GraphEdgeType
impl Send for GraphEdgeType
impl Sync for GraphEdgeType
impl Unpin for GraphEdgeType
impl UnsafeUnpin for GraphEdgeType
impl UnwindSafe for GraphEdgeType
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