pub struct RuleApplicationResult {
pub rule: Rule,
pub matched: bool,
pub action: Option<String>,
pub confidence: f32,
pub details: HashMap<String, Value>,
}Expand description
Result of applying a rule to a generation context
Fields§
§rule: RuleThe rule that was applied
matched: boolWhether the rule matched the context
action: Option<String>The action to apply (if matched)
confidence: f32Confidence in the match
details: HashMap<String, Value>Additional details about the application
Implementations§
Trait Implementations§
Source§impl Clone for RuleApplicationResult
impl Clone for RuleApplicationResult
Source§fn clone(&self) -> RuleApplicationResult
fn clone(&self) -> RuleApplicationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuleApplicationResult
impl RefUnwindSafe for RuleApplicationResult
impl Send for RuleApplicationResult
impl Sync for RuleApplicationResult
impl Unpin for RuleApplicationResult
impl UnwindSafe for RuleApplicationResult
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