pub struct LearningConfig {
pub enabled: bool,
pub mode: LearningMode,
pub sensitivity: f64,
pub decay: f64,
pub min_samples: usize,
pub update_interval: Duration,
pub persona_adaptation: bool,
pub traffic_mirroring: bool,
pub endpoint_learning: HashMap<String, bool>,
pub persona_learning: HashMap<String, bool>,
}Expand description
Learning configuration
Fields§
§enabled: boolEnable drift learning
mode: LearningModeLearning mode
sensitivity: f64Learning rate (0.0 to 1.0) - how quickly mocks learn from patterns
decay: f64Decay rate (0.0 to 1.0) - drift resets if upstream patterns reverse
min_samples: usizeMinimum number of samples before learning starts
update_interval: DurationUpdate interval for learning
persona_adaptation: boolEnable persona adaptation
traffic_mirroring: boolEnable traffic pattern mirroring
endpoint_learning: HashMap<String, bool>Per-endpoint opt-in learning (endpoint pattern -> enabled)
persona_learning: HashMap<String, bool>Per-persona opt-in learning (persona_id -> enabled)
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