pub struct IngestRelation {
pub id: String,
pub source_entity_label: String,
pub relation_type: String,
pub target_entity_label: String,
pub evidence_ids: Vec<String>,
pub confidence: Option<ConfidenceScore>,
pub status: Option<FactStatus>,
pub version_range: Option<GraphVersionRange>,
}Expand description
Structured relation supplied to the ingest API.
Fields§
§id: String§source_entity_label: String§relation_type: String§target_entity_label: String§evidence_ids: Vec<String>§confidence: Option<ConfidenceScore>§status: Option<FactStatus>§version_range: Option<GraphVersionRange>Trait Implementations§
Source§impl Clone for IngestRelation
impl Clone for IngestRelation
Source§fn clone(&self) -> IngestRelation
fn clone(&self) -> IngestRelation
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 IngestRelation
impl Debug for IngestRelation
Source§impl<'de> Deserialize<'de> for IngestRelation
impl<'de> Deserialize<'de> for IngestRelation
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 IngestRelation
impl PartialEq for IngestRelation
Source§fn eq(&self, other: &IngestRelation) -> bool
fn eq(&self, other: &IngestRelation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IngestRelation
impl Serialize for IngestRelation
impl Eq for IngestRelation
impl StructuralPartialEq for IngestRelation
Auto Trait Implementations§
impl Freeze for IngestRelation
impl RefUnwindSafe for IngestRelation
impl Send for IngestRelation
impl Sync for IngestRelation
impl Unpin for IngestRelation
impl UnsafeUnpin for IngestRelation
impl UnwindSafe for IngestRelation
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