pub struct KnowledgeGraphRelation {
pub assertion_id: FactId,
pub subject_id: FactId,
pub predicate: String,
pub object: KnowledgeAssertionObject,
pub sources: Vec<FactId>,
pub confidence: f64,
}Expand description
KnowledgeGraphRelation data container.
Fields§
§assertion_id: FactIdassertion_id field for assertion id.
subject_id: FactIdsubject_id field for subject id.
predicate: Stringpredicate field for predicate.
object: KnowledgeAssertionObjectobject field for object.
sources: Vec<FactId>sources field for sources.
confidence: f64confidence field for confidence.
Trait Implementations§
Source§impl Clone for KnowledgeGraphRelation
impl Clone for KnowledgeGraphRelation
Source§fn clone(&self) -> KnowledgeGraphRelation
fn clone(&self) -> KnowledgeGraphRelation
Returns a duplicate of the value. Read more
1.0.0 · 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 KnowledgeGraphRelation
impl Debug for KnowledgeGraphRelation
Source§impl PartialEq for KnowledgeGraphRelation
impl PartialEq for KnowledgeGraphRelation
impl StructuralPartialEq for KnowledgeGraphRelation
Auto Trait Implementations§
impl Freeze for KnowledgeGraphRelation
impl RefUnwindSafe for KnowledgeGraphRelation
impl Send for KnowledgeGraphRelation
impl Sync for KnowledgeGraphRelation
impl Unpin for KnowledgeGraphRelation
impl UnsafeUnpin for KnowledgeGraphRelation
impl UnwindSafe for KnowledgeGraphRelation
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