pub struct SemanticSupportRule { /* private fields */ }Expand description
Evidence bodies and acceptance threshold for semantic support judging.
Implementations§
Source§impl SemanticSupportRule
impl SemanticSupportRule
pub fn new( min_confidence: u8, bodies: impl IntoIterator<Item = (impl Into<String>, impl Into<String>)>, ) -> Result<Self, DomainError>
pub const fn min_confidence(&self) -> u8
pub fn bodies(&self) -> &BTreeMap<String, String>
pub fn body(&self, reference: &str) -> Option<&str>
Trait Implementations§
Source§impl Clone for SemanticSupportRule
impl Clone for SemanticSupportRule
Source§fn clone(&self) -> SemanticSupportRule
fn clone(&self) -> SemanticSupportRule
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 SemanticSupportRule
impl Debug for SemanticSupportRule
Source§impl<'de> Deserialize<'de> for SemanticSupportRule
impl<'de> Deserialize<'de> for SemanticSupportRule
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
impl Eq for SemanticSupportRule
Source§impl PartialEq for SemanticSupportRule
impl PartialEq for SemanticSupportRule
Source§impl Serialize for SemanticSupportRule
impl Serialize for SemanticSupportRule
impl StructuralPartialEq for SemanticSupportRule
Auto Trait Implementations§
impl Freeze for SemanticSupportRule
impl RefUnwindSafe for SemanticSupportRule
impl Send for SemanticSupportRule
impl Sync for SemanticSupportRule
impl Unpin for SemanticSupportRule
impl UnsafeUnpin for SemanticSupportRule
impl UnwindSafe for SemanticSupportRule
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