pub struct StoredGraphEdge {
pub id: String,
pub source: String,
pub target: String,
pub edge_type: String,
pub edge_type_parsed: Option<GraphEdgeType>,
pub weight: f64,
pub metadata: Option<String>,
pub content_digest: String,
pub recorded_at: String,
pub is_invalidated: bool,
pub invalidated_at: Option<String>,
pub invalidation_reason: Option<String>,
}Expand description
A stored graph edge row.
Fields§
§id: StringUnique edge ID (UUID v4).
source: StringSource node ID (prefixed, e.g. fact:<uuid>).
target: StringTarget node ID (prefixed, e.g. fact:<uuid>).
edge_type: StringSerialized GraphEdgeType JSON.
edge_type_parsed: Option<GraphEdgeType>Deserialized edge type.
weight: f64Edge weight.
metadata: Option<String>Optional metadata JSON.
content_digest: StringContent digest (blake3 of source+target+edge_type+weight+metadata).
recorded_at: StringRecorded timestamp (microsecond precision).
is_invalidated: boolWhether this edge has been invalidated.
invalidated_at: Option<String>Invalidation timestamp.
invalidation_reason: Option<String>Invalidation reason.
Trait Implementations§
Source§impl Clone for StoredGraphEdge
impl Clone for StoredGraphEdge
Source§fn clone(&self) -> StoredGraphEdge
fn clone(&self) -> StoredGraphEdge
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 StoredGraphEdge
impl Debug for StoredGraphEdge
Source§impl<'de> Deserialize<'de> for StoredGraphEdge
impl<'de> Deserialize<'de> for StoredGraphEdge
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 StoredGraphEdge
impl RefUnwindSafe for StoredGraphEdge
impl Send for StoredGraphEdge
impl Sync for StoredGraphEdge
impl Unpin for StoredGraphEdge
impl UnsafeUnpin for StoredGraphEdge
impl UnwindSafe for StoredGraphEdge
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