pub enum PredictionSource {
UserMapping,
EmbeddedRule {
rule_id: String,
},
RuleEngine {
matched_rules: Vec<String>,
},
LlmApi {
model: String,
},
Hybrid {
rule_id: String,
model: String,
},
}Expand description
Which part of the pipeline produced the prediction.
Variants§
UserMapping
From the user’s own CAS → HS mapping (highest trust).
EmbeddedRule
From the embedded compile-time rule table.
RuleEngine
From the SMILES-based rule engine (v0.3).
LlmApi
From an LLM API call (v0.4).
Hybrid
Combined rule-engine pre-classification + LLM final decision.
Trait Implementations§
Source§impl Clone for PredictionSource
impl Clone for PredictionSource
Source§fn clone(&self) -> PredictionSource
fn clone(&self) -> PredictionSource
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 PredictionSource
impl Debug for PredictionSource
Source§impl<'de> Deserialize<'de> for PredictionSource
impl<'de> Deserialize<'de> for PredictionSource
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
Auto Trait Implementations§
impl Freeze for PredictionSource
impl RefUnwindSafe for PredictionSource
impl Send for PredictionSource
impl Sync for PredictionSource
impl Unpin for PredictionSource
impl UnsafeUnpin for PredictionSource
impl UnwindSafe for PredictionSource
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