pub struct ProtectionConfig {
pub strict_mode: bool,
pub emergency_bypass_enabled: bool,
pub emergency_bypass_level: ApprovalLevel,
pub audit_logging: bool,
pub default_protection_level: ProtectionLevel,
}
Expand description
Configuration for protection system behavior
Fields§
§strict_mode: bool
Enable strict mode (reject all protected modifications)
emergency_bypass_enabled: bool
Allow emergency bypass with elevated approval
emergency_bypass_level: ApprovalLevel
Required approval level for emergency bypass
audit_logging: bool
Enable audit logging for all protection decisions
default_protection_level: ProtectionLevel
Default protection level for unspecified files
Trait Implementations§
Source§impl Clone for ProtectionConfig
impl Clone for ProtectionConfig
Source§fn clone(&self) -> ProtectionConfig
fn clone(&self) -> ProtectionConfig
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 ProtectionConfig
impl Debug for ProtectionConfig
Auto Trait Implementations§
impl Freeze for ProtectionConfig
impl RefUnwindSafe for ProtectionConfig
impl Send for ProtectionConfig
impl Sync for ProtectionConfig
impl Unpin for ProtectionConfig
impl UnwindSafe for ProtectionConfig
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