pub struct StatementDetail {
pub statement_id: String,
pub kind: String,
pub subject: String,
pub predicate: String,
pub object: StatementObject,
pub confidence: f32,
pub event_at_unix_nanos: u64,
pub valid_from_unix_nanos: u64,
pub valid_to_unix_nanos: u64,
pub tombstoned: bool,
pub subject_name: Option<String>,
pub object_name: Option<String>,
}Expand description
One statement, as the edge projects it.
Fields§
§statement_id: String§kind: StringThe statement’s own kind (Fact, Preference, Event) — not the
kind tag inside StatementObject, which discriminates the object.
subject: String§predicate: String§object: StatementObject§confidence: f32§event_at_unix_nanos: u64§valid_from_unix_nanos: u64§valid_to_unix_nanos: u64§tombstoned: bool§subject_name: Option<String>Display name of subject (absent when it could not be resolved).
The server resolves these so a caller does not have to. Without them every consumer re-queries each id just to print a name — which is the second call the field exists to remove.
object_name: Option<String>Display name of an entity object (absent for values / unresolved).
Trait Implementations§
Source§impl Clone for StatementDetail
impl Clone for StatementDetail
Source§impl Debug for StatementDetail
impl Debug for StatementDetail
Source§impl<'de> Deserialize<'de> for StatementDetail
impl<'de> Deserialize<'de> for StatementDetail
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 StatementDetail
impl RefUnwindSafe for StatementDetail
impl Send for StatementDetail
impl Sync for StatementDetail
impl Unpin for StatementDetail
impl UnsafeUnpin for StatementDetail
impl UnwindSafe for StatementDetail
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