pub struct ScopeConfiguration {
pub scope: RuleScope,
pub learning_enabled: bool,
pub project_only: bool,
pub approval_required: bool,
pub max_rules: usize,
pub retention_days: u32,
}Expand description
Scope configuration with learning control flags
Fields§
§scope: RuleScopeThe scope this configuration applies to
learning_enabled: boolWhether learning is enabled for this scope
project_only: boolWhether to restrict learning to this scope only (project-only learning)
approval_required: boolWhether approval is required for new rules
max_rules: usizeMaximum number of rules to store in this scope
retention_days: u32Retention period in days
Implementations§
Trait Implementations§
Source§impl Clone for ScopeConfiguration
impl Clone for ScopeConfiguration
Source§fn clone(&self) -> ScopeConfiguration
fn clone(&self) -> ScopeConfiguration
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 ScopeConfiguration
impl Debug for ScopeConfiguration
Source§impl Default for ScopeConfiguration
impl Default for ScopeConfiguration
Source§impl<'de> Deserialize<'de> for ScopeConfiguration
impl<'de> Deserialize<'de> for ScopeConfiguration
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 ScopeConfiguration
impl RefUnwindSafe for ScopeConfiguration
impl Send for ScopeConfiguration
impl Sync for ScopeConfiguration
impl Unpin for ScopeConfiguration
impl UnwindSafe for ScopeConfiguration
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