pub struct Edge {
pub id: String,
pub source_id: String,
pub target_id: String,
pub relation: String,
pub fact: Option<String>,
pub valid_from: Option<DateTime<Utc>>,
pub valid_until: Option<DateTime<Utc>>,
pub recorded_at: DateTime<Utc>,
pub confidence: f64,
pub episode_id: Option<String>,
pub metadata: Option<Value>,
}Expand description
An edge is a relationship between two entities. Edges are bi-temporal: valid_from/valid_until (real-world) + recorded_at (system).
Fields§
§id: String§source_id: String§target_id: String§relation: String§fact: Option<String>§valid_from: Option<DateTime<Utc>>§valid_until: Option<DateTime<Utc>>§recorded_at: DateTime<Utc>§confidence: f64§episode_id: Option<String>§metadata: Option<Value>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Edge
impl<'de> Deserialize<'de> for Edge
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 Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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