pub struct PatternMatch {
pub concept: String,
pub provider: String,
pub model: String,
pub score: f64,
pub priority: Priority,
pub weighted_score: f64,
pub rule_id: String,
}Expand description
Result of pattern matching with priority scoring
Fields§
§concept: StringThe concept that was matched
provider: StringProvider to route to
model: StringModel to use
score: f64Match score (0.0 to 1.0)
priority: PriorityPriority of the matched rule
weighted_score: f64Combined weighted score (score * priority_factor)
rule_id: StringThe rule that was matched
Implementations§
Source§impl PatternMatch
impl PatternMatch
Trait Implementations§
Source§impl Clone for PatternMatch
impl Clone for PatternMatch
Source§fn clone(&self) -> PatternMatch
fn clone(&self) -> PatternMatch
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 moreSource§impl Debug for PatternMatch
impl Debug for PatternMatch
Source§impl<'de> Deserialize<'de> for PatternMatch
impl<'de> Deserialize<'de> for PatternMatch
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
Source§impl PartialEq for PatternMatch
impl PartialEq for PatternMatch
Source§impl Serialize for PatternMatch
impl Serialize for PatternMatch
impl StructuralPartialEq for PatternMatch
Auto Trait Implementations§
impl Freeze for PatternMatch
impl RefUnwindSafe for PatternMatch
impl Send for PatternMatch
impl Sync for PatternMatch
impl Unpin for PatternMatch
impl UnwindSafe for PatternMatch
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