pub struct ClassificationConfig {
pub rules_file: Option<PathBuf>,
pub use_llm: bool,
pub llm_model: Option<String>,
pub confidence_threshold: f64,
}Expand description
Classification cascade configuration.
Fields§
§rules_file: Option<PathBuf>Path to user-supplied rules YAML/JSON.
use_llm: boolWhether to engage the LLM fallback tier.
llm_model: Option<String>LLM model identifier (provider-specific).
confidence_threshold: f64Minimum confidence required to accept a classification.
Trait Implementations§
Source§impl Clone for ClassificationConfig
impl Clone for ClassificationConfig
Source§fn clone(&self) -> ClassificationConfig
fn clone(&self) -> ClassificationConfig
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 ClassificationConfig
impl Debug for ClassificationConfig
Source§impl Default for ClassificationConfig
impl Default for ClassificationConfig
Source§fn default() -> ClassificationConfig
fn default() -> ClassificationConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClassificationConfig
impl<'de> Deserialize<'de> for ClassificationConfig
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 ClassificationConfig
impl RefUnwindSafe for ClassificationConfig
impl Send for ClassificationConfig
impl Sync for ClassificationConfig
impl Unpin for ClassificationConfig
impl UnsafeUnpin for ClassificationConfig
impl UnwindSafe for ClassificationConfig
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