pub struct LearningConfig {
pub scope: RuleScope,
pub enabled: bool,
pub approval_required: bool,
pub auto_promote: bool,
pub retention_days: u32,
pub max_rules: usize,
}Expand description
Learning system configuration
Fields§
§scope: RuleScopeScope for learning (global, project, or session)
enabled: boolWhether learning is enabled
approval_required: boolWhether approval is required for new rules
auto_promote: boolWhether to automatically promote rules
retention_days: u32How many days to retain rules
max_rules: usizeMaximum number of rules to store
Implementations§
Trait Implementations§
Source§impl Clone for LearningConfig
impl Clone for LearningConfig
Source§fn clone(&self) -> LearningConfig
fn clone(&self) -> LearningConfig
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 LearningConfig
impl Debug for LearningConfig
Source§impl Default for LearningConfig
impl Default for LearningConfig
Source§impl<'de> Deserialize<'de> for LearningConfig
impl<'de> Deserialize<'de> for LearningConfig
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 LearningConfig
impl RefUnwindSafe for LearningConfig
impl Send for LearningConfig
impl Sync for LearningConfig
impl Unpin for LearningConfig
impl UnwindSafe for LearningConfig
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