pub struct RelationExplanation { /* private fields */ }Implementations§
Source§impl RelationExplanation
impl RelationExplanation
pub fn new(semantic_class: RelationSemanticClass) -> Self
pub fn from_properties( properties: &BTreeMap<String, String>, ) -> Result<Self, DomainError>
pub fn to_properties(&self) -> BTreeMap<String, String>
pub fn semantic_class(&self) -> &RelationSemanticClass
pub fn rationale(&self) -> Option<&str>
pub fn motivation(&self) -> Option<&str>
pub fn method(&self) -> Option<&str>
pub fn decision_id(&self) -> Option<&str>
pub fn caused_by_node_id(&self) -> Option<&str>
pub fn evidence(&self) -> Option<&str>
pub fn confidence(&self) -> Option<&str>
pub fn dimension(&self) -> Option<&str>
pub fn scope_id(&self) -> Option<&str>
pub fn occurred_at(&self) -> Option<&str>
pub fn observed_at(&self) -> Option<&str>
pub fn ingested_at(&self) -> Option<&str>
pub fn valid_from(&self) -> Option<&str>
pub fn valid_until(&self) -> Option<&str>
pub fn sequence(&self) -> Option<u32>
pub fn rank(&self) -> Option<u32>
pub fn with_rationale(self, value: impl Into<String>) -> Self
pub fn with_optional_rationale(self, value: Option<String>) -> Self
pub fn with_motivation(self, value: impl Into<String>) -> Self
pub fn with_optional_motivation(self, value: Option<String>) -> Self
pub fn with_method(self, value: impl Into<String>) -> Self
pub fn with_optional_method(self, value: Option<String>) -> Self
pub fn with_decision_id(self, value: impl Into<String>) -> Self
pub fn with_optional_decision_id(self, value: Option<String>) -> Self
pub fn with_caused_by_node_id(self, value: impl Into<String>) -> Self
pub fn with_optional_caused_by_node_id(self, value: Option<String>) -> Self
pub fn with_evidence(self, value: impl Into<String>) -> Self
pub fn with_optional_evidence(self, value: Option<String>) -> Self
pub fn with_confidence(self, value: impl Into<String>) -> Self
pub fn with_optional_confidence(self, value: Option<String>) -> Self
pub fn with_dimension(self, value: impl Into<String>) -> Self
pub fn with_optional_dimension(self, value: Option<String>) -> Self
pub fn with_scope_id(self, value: impl Into<String>) -> Self
pub fn with_optional_scope_id(self, value: Option<String>) -> Self
pub fn with_occurred_at(self, value: impl Into<String>) -> Self
pub fn with_optional_occurred_at(self, value: Option<String>) -> Self
pub fn with_observed_at(self, value: impl Into<String>) -> Self
pub fn with_optional_observed_at(self, value: Option<String>) -> Self
pub fn with_ingested_at(self, value: impl Into<String>) -> Self
pub fn with_optional_ingested_at(self, value: Option<String>) -> Self
pub fn with_valid_from(self, value: impl Into<String>) -> Self
pub fn with_optional_valid_from(self, value: Option<String>) -> Self
pub fn with_valid_until(self, value: impl Into<String>) -> Self
pub fn with_optional_valid_until(self, value: Option<String>) -> Self
pub fn with_sequence(self, value: u32) -> Self
pub fn with_optional_sequence(self, value: Option<u32>) -> Self
pub fn with_rank(self, value: u32) -> Self
pub fn with_optional_rank(self, value: Option<u32>) -> Self
Trait Implementations§
Source§impl Clone for RelationExplanation
impl Clone for RelationExplanation
Source§fn clone(&self) -> RelationExplanation
fn clone(&self) -> RelationExplanation
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 RelationExplanation
impl Debug for RelationExplanation
impl Eq for RelationExplanation
Source§impl PartialEq for RelationExplanation
impl PartialEq for RelationExplanation
impl StructuralPartialEq for RelationExplanation
Source§impl TryFrom<RelatedNodeExplanationData> for RelationExplanation
impl TryFrom<RelatedNodeExplanationData> for RelationExplanation
Source§type Error = DomainError
type Error = DomainError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for RelationExplanation
impl RefUnwindSafe for RelationExplanation
impl Send for RelationExplanation
impl Sync for RelationExplanation
impl Unpin for RelationExplanation
impl UnsafeUnpin for RelationExplanation
impl UnwindSafe for RelationExplanation
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