pub struct SecurityPolicy {
pub allowed_ip_ranges: Vec<String>,
pub blocked_ips: Vec<String>,
pub require_tls: bool,
pub min_tls_version: String,
pub allowed_origins: Vec<String>,
pub max_request_size: usize,
pub session_timeout: u64,
pub require_mfa: bool,
pub allowed_endpoints: Vec<String>,
pub blocked_endpoints: Vec<String>,
pub enable_audit: bool,
pub data_classifications: Vec<DataClassification>,
}Expand description
Security policy configuration
Fields§
§allowed_ip_ranges: Vec<String>Allowed IP ranges (CIDR notation)
blocked_ips: Vec<String>Blocked IP addresses
require_tls: boolRequire TLS
min_tls_version: StringMinimum TLS version
allowed_origins: Vec<String>Allowed origins for CORS
max_request_size: usizeMaximum request size in bytes
session_timeout: u64Session timeout in seconds
require_mfa: boolRequire MFA for sensitive operations
allowed_endpoints: Vec<String>Allowed API endpoints
blocked_endpoints: Vec<String>Blocked endpoints
enable_audit: boolEnable audit logging
data_classifications: Vec<DataClassification>Data classification levels
Trait Implementations§
Source§impl Clone for SecurityPolicy
impl Clone for SecurityPolicy
Source§fn clone(&self) -> SecurityPolicy
fn clone(&self) -> SecurityPolicy
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 SecurityPolicy
impl Debug for SecurityPolicy
Source§impl Default for SecurityPolicy
impl Default for SecurityPolicy
Source§impl<'de> Deserialize<'de> for SecurityPolicy
impl<'de> Deserialize<'de> for SecurityPolicy
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 SecurityPolicy
impl RefUnwindSafe for SecurityPolicy
impl Send for SecurityPolicy
impl Sync for SecurityPolicy
impl Unpin for SecurityPolicy
impl UnwindSafe for SecurityPolicy
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