pub struct SecurityConfiguration {Show 24 fields
pub enabled: bool,
pub tls_enabled: bool,
pub tls_cert_path: PathBuf,
pub tls_key_path: PathBuf,
pub tls_port: u16,
pub auth_enabled: bool,
pub jwt_secret: String,
pub jwt_expiry_hours: u32,
pub api_key_enabled: bool,
pub rate_limiting_enabled: bool,
pub requests_per_minute: u32,
pub rate_limit_burst: u32,
pub audit_enabled: bool,
pub audit_retention_days: u32,
pub pii_detection_enabled: bool,
pub pii_mask_logs: bool,
pub gdpr_enabled: bool,
pub gdpr_retention_days: u32,
pub right_to_be_forgotten: bool,
pub vault_enabled: bool,
pub vault_address: Option<String>,
pub vault_token_path: Option<PathBuf>,
pub input_validation_enabled: bool,
pub max_request_size_mb: u32,
}Fields§
§enabled: boolEnable security features
tls_enabled: boolTLS configuration
tls_cert_path: PathBuf§tls_key_path: PathBuf§tls_port: u16§auth_enabled: boolAuthentication configuration
jwt_secret: String§jwt_expiry_hours: u32§api_key_enabled: bool§rate_limiting_enabled: boolRate limiting configuration
requests_per_minute: u32§rate_limit_burst: u32§audit_enabled: boolAudit logging configuration
audit_retention_days: u32§pii_detection_enabled: boolPII detection configuration
pii_mask_logs: bool§gdpr_enabled: boolGDPR compliance configuration
gdpr_retention_days: u32§right_to_be_forgotten: bool§vault_enabled: boolSecrets management configuration
vault_address: Option<String>§vault_token_path: Option<PathBuf>§input_validation_enabled: boolInput validation configuration
max_request_size_mb: u32Trait Implementations§
Source§impl Clone for SecurityConfiguration
impl Clone for SecurityConfiguration
Source§fn clone(&self) -> SecurityConfiguration
fn clone(&self) -> SecurityConfiguration
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 SecurityConfiguration
impl Debug for SecurityConfiguration
Source§impl Default for SecurityConfiguration
impl Default for SecurityConfiguration
Source§impl<'de> Deserialize<'de> for SecurityConfiguration
impl<'de> Deserialize<'de> for SecurityConfiguration
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 SecurityConfiguration
impl RefUnwindSafe for SecurityConfiguration
impl Send for SecurityConfiguration
impl Sync for SecurityConfiguration
impl Unpin for SecurityConfiguration
impl UnwindSafe for SecurityConfiguration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more