pub struct Triple {
pub subject: String,
pub predicate: String,
pub object: String,
pub graph: Option<String>,
pub confidence: Option<f64>,
pub source_document: Option<String>,
pub source_chunk_id: Option<String>,
pub extracted_by: Option<String>,
pub caused_by: Option<String>,
pub derived_from: Option<String>,
pub consolidated_at: Option<i64>,
}Expand description
A single triple to be added to the store.
Fields§
§subject: String§predicate: String§object: String§graph: Option<String>§confidence: Option<f64>§source_document: Option<String>§source_chunk_id: Option<String>FK to ChunkTable for fine-grained provenance.
extracted_by: Option<String>§caused_by: Option<String>The triple_id of the triple that caused this one (causal chain).
derived_from: Option<String>The triple_id of the triple this was derived from.
consolidated_at: Option<i64>Timestamp (ms since epoch) when this triple was consolidated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Triple
impl RefUnwindSafe for Triple
impl Send for Triple
impl Sync for Triple
impl Unpin for Triple
impl UnsafeUnpin for Triple
impl UnwindSafe for Triple
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