pub struct EnrichedStatement {
pub id: [u8; 16],
pub subject_name: String,
pub predicate: String,
pub object_label: String,
pub object_entity_id: Option<[u8; 16]>,
pub confidence: f32,
pub event_at_unix_nanos: Option<u64>,
}Expand description
A typed statement attached to a recall hit by GraphEnrichment, flattened
to display strings (subject name, predicate, object label) plus its
confidence.
Fields§
§id: [u8; 16]§subject_name: String§predicate: String§object_label: String§object_entity_id: Option<[u8; 16]>The object’s entity id when the object IS an entity; None for a
literal value.
object_label alone cannot answer “is this an entity?” — it
stringifies both cases — so a consumer had to guess by matching the
label against known entity names, and that guess is wrong exactly when
a literal’s text equals an entity’s name. Optional on the wire, so a
peer that omits it still decodes; absent means “no entity object”.
confidence: f32§event_at_unix_nanos: Option<u64>When the statement’s EVENT happened, in unix nanos — the reified Time slot of an Event-kind statement. Absent from the wire map for a statement with no event time.
Trait Implementations§
Source§impl Clone for EnrichedStatement
impl Clone for EnrichedStatement
Source§impl Debug for EnrichedStatement
impl Debug for EnrichedStatement
Source§impl<'de> Deserialize<'de> for EnrichedStatement
impl<'de> Deserialize<'de> for EnrichedStatement
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
Source§impl PartialEq for EnrichedStatement
impl PartialEq for EnrichedStatement
Source§impl Serialize for EnrichedStatement
impl Serialize for EnrichedStatement
impl StructuralPartialEq for EnrichedStatement
Auto Trait Implementations§
impl Freeze for EnrichedStatement
impl RefUnwindSafe for EnrichedStatement
impl Send for EnrichedStatement
impl Sync for EnrichedStatement
impl Unpin for EnrichedStatement
impl UnsafeUnpin for EnrichedStatement
impl UnwindSafe for EnrichedStatement
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