Skip to main content

RelationExplanation

Struct RelationExplanation 

Source
pub struct RelationExplanation { /* private fields */ }

Implementations§

Source§

impl RelationExplanation

Source

pub fn new(semantic_class: RelationSemanticClass) -> Self

Source

pub fn from_properties( properties: &BTreeMap<String, String>, ) -> Result<Self, DomainError>

Source

pub fn to_properties(&self) -> BTreeMap<String, String>

Source

pub fn semantic_class(&self) -> &RelationSemanticClass

Source

pub fn rationale(&self) -> Option<&str>

Source

pub fn motivation(&self) -> Option<&str>

Source

pub fn method(&self) -> Option<&str>

Source

pub fn decision_id(&self) -> Option<&str>

Source

pub fn caused_by_node_id(&self) -> Option<&str>

Source

pub fn evidence(&self) -> Option<&str>

Source

pub fn confidence(&self) -> Option<&str>

Source

pub fn dimension(&self) -> Option<&str>

Source

pub fn scope_id(&self) -> Option<&str>

Source

pub fn occurred_at(&self) -> Option<&str>

Source

pub fn observed_at(&self) -> Option<&str>

Source

pub fn ingested_at(&self) -> Option<&str>

Source

pub fn valid_from(&self) -> Option<&str>

Source

pub fn valid_until(&self) -> Option<&str>

Source

pub fn sequence(&self) -> Option<u32>

Source

pub fn rank(&self) -> Option<u32>

Source

pub fn with_rationale(self, value: impl Into<String>) -> Self

Source

pub fn with_optional_rationale(self, value: Option<String>) -> Self

Source

pub fn with_motivation(self, value: impl Into<String>) -> Self

Source

pub fn with_optional_motivation(self, value: Option<String>) -> Self

Source

pub fn with_method(self, value: impl Into<String>) -> Self

Source

pub fn with_optional_method(self, value: Option<String>) -> Self

Source

pub fn with_decision_id(self, value: impl Into<String>) -> Self

Source

pub fn with_optional_decision_id(self, value: Option<String>) -> Self

Source

pub fn with_caused_by_node_id(self, value: impl Into<String>) -> Self

Source

pub fn with_optional_caused_by_node_id(self, value: Option<String>) -> Self

Source

pub fn with_evidence(self, value: impl Into<String>) -> Self

Source

pub fn with_optional_evidence(self, value: Option<String>) -> Self

Source

pub fn with_confidence(self, value: impl Into<String>) -> Self

Source

pub fn with_optional_confidence(self, value: Option<String>) -> Self

Source

pub fn with_dimension(self, value: impl Into<String>) -> Self

Source

pub fn with_optional_dimension(self, value: Option<String>) -> Self

Source

pub fn with_scope_id(self, value: impl Into<String>) -> Self

Source

pub fn with_optional_scope_id(self, value: Option<String>) -> Self

Source

pub fn with_occurred_at(self, value: impl Into<String>) -> Self

Source

pub fn with_optional_occurred_at(self, value: Option<String>) -> Self

Source

pub fn with_observed_at(self, value: impl Into<String>) -> Self

Source

pub fn with_optional_observed_at(self, value: Option<String>) -> Self

Source

pub fn with_ingested_at(self, value: impl Into<String>) -> Self

Source

pub fn with_optional_ingested_at(self, value: Option<String>) -> Self

Source

pub fn with_valid_from(self, value: impl Into<String>) -> Self

Source

pub fn with_optional_valid_from(self, value: Option<String>) -> Self

Source

pub fn with_valid_until(self, value: impl Into<String>) -> Self

Source

pub fn with_optional_valid_until(self, value: Option<String>) -> Self

Source

pub fn with_sequence(self, value: u32) -> Self

Source

pub fn with_optional_sequence(self, value: Option<u32>) -> Self

Source

pub fn with_rank(self, value: u32) -> Self

Source

pub fn with_optional_rank(self, value: Option<u32>) -> Self

Trait Implementations§

Source§

impl Clone for RelationExplanation

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for RelationExplanation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for RelationExplanation

Source§

impl PartialEq for RelationExplanation

Source§

fn eq(&self, other: &RelationExplanation) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RelationExplanation

Source§

impl TryFrom<RelatedNodeExplanationData> for RelationExplanation

Source§

type Error = DomainError

The type returned in the event of a conversion error.
Source§

fn try_from(value: RelatedNodeExplanationData) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.