pub struct EvidenceGroundingRule { /* private fields */ }Expand description
Field shape and evidence pack required to ground structured claims.
Implementations§
Source§impl EvidenceGroundingRule
impl EvidenceGroundingRule
pub fn new( claims_field: impl Into<String>, refs_field: impl Into<String>, allowed_refs: impl IntoIterator<Item = impl Into<String>>, ) -> Result<Self, DomainError>
pub fn with_semantic_support( self, rule: SemanticSupportRule, ) -> Result<Self, DomainError>
pub fn claims_field(&self) -> &str
pub fn refs_field(&self) -> &str
pub fn allowed_refs(&self) -> &BTreeSet<String>
pub fn semantic_support(&self) -> Option<&SemanticSupportRule>
Trait Implementations§
Source§impl Clone for EvidenceGroundingRule
impl Clone for EvidenceGroundingRule
Source§fn clone(&self) -> EvidenceGroundingRule
fn clone(&self) -> EvidenceGroundingRule
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 EvidenceGroundingRule
impl Debug for EvidenceGroundingRule
Source§impl<'de> Deserialize<'de> for EvidenceGroundingRule
impl<'de> Deserialize<'de> for EvidenceGroundingRule
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 EvidenceGroundingRule
Source§impl PartialEq for EvidenceGroundingRule
impl PartialEq for EvidenceGroundingRule
Source§impl Serialize for EvidenceGroundingRule
impl Serialize for EvidenceGroundingRule
impl StructuralPartialEq for EvidenceGroundingRule
Auto Trait Implementations§
impl Freeze for EvidenceGroundingRule
impl RefUnwindSafe for EvidenceGroundingRule
impl Send for EvidenceGroundingRule
impl Sync for EvidenceGroundingRule
impl Unpin for EvidenceGroundingRule
impl UnsafeUnpin for EvidenceGroundingRule
impl UnwindSafe for EvidenceGroundingRule
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