pub enum SecurityProfile {
Standard,
Regulated,
}Expand description
Security profile configuration
Variants§
Standard
STANDARD: Basic security (rate limit + audit)
Regulated
REGULATED: Full security with compliance features (HIPAA/SOC2)
Implementations§
Source§impl SecurityProfile
impl SecurityProfile
Sourcepub const fn is_standard(&self) -> bool
pub const fn is_standard(&self) -> bool
Check if this is STANDARD profile
Sourcepub const fn is_regulated(&self) -> bool
pub const fn is_regulated(&self) -> bool
Check if this is REGULATED profile
Sourcepub const fn rate_limit_enabled(&self) -> bool
pub const fn rate_limit_enabled(&self) -> bool
Check if rate limiting is enabled for this profile
Sourcepub const fn audit_logging_enabled(&self) -> bool
pub const fn audit_logging_enabled(&self) -> bool
Check if audit logging is enabled for this profile
Sourcepub const fn audit_field_access(&self) -> bool
pub const fn audit_field_access(&self) -> bool
Check if field-level audit is enabled (REGULATED only)
Sourcepub const fn sensitive_field_masking(&self) -> bool
pub const fn sensitive_field_masking(&self) -> bool
Check if sensitive field masking is enabled (REGULATED only)
Sourcepub const fn error_detail_reduction(&self) -> bool
pub const fn error_detail_reduction(&self) -> bool
Check if error detail reduction is enabled (REGULATED only)
Sourcepub const fn query_logging_for_compliance(&self) -> bool
pub const fn query_logging_for_compliance(&self) -> bool
Check if query logging for compliance is enabled (REGULATED only)
Sourcepub const fn response_size_limits(&self) -> bool
pub const fn response_size_limits(&self) -> bool
Check if response size limits are enforced (REGULATED only)
Sourcepub const fn field_filtering_strict(&self) -> bool
pub const fn field_filtering_strict(&self) -> bool
Check if strict field filtering is enabled (REGULATED only)
Sourcepub const fn max_response_size_bytes(&self) -> usize
pub const fn max_response_size_bytes(&self) -> usize
Get maximum response size for this profile (bytes)
Sourcepub const fn max_query_complexity(&self) -> usize
pub const fn max_query_complexity(&self) -> usize
Get maximum query complexity for this profile
Sourcepub const fn max_query_depth(&self) -> usize
pub const fn max_query_depth(&self) -> usize
Get maximum query depth for this profile
Sourcepub const fn rate_limit_rps(&self) -> u32
pub const fn rate_limit_rps(&self) -> u32
Get rate limit - requests per second per user
Sourcepub const fn description(&self) -> &'static str
pub const fn description(&self) -> &'static str
Get enforcement level description
Sourcepub fn enforced_features(&self) -> Vec<&'static str>
pub fn enforced_features(&self) -> Vec<&'static str>
Get all enforced features for this profile
Trait Implementations§
Source§impl Clone for SecurityProfile
impl Clone for SecurityProfile
Source§fn clone(&self) -> SecurityProfile
fn clone(&self) -> SecurityProfile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SecurityProfile
impl Debug for SecurityProfile
Source§impl Default for SecurityProfile
impl Default for SecurityProfile
Source§fn default() -> SecurityProfile
fn default() -> SecurityProfile
Source§impl<'de> Deserialize<'de> for SecurityProfile
impl<'de> Deserialize<'de> for SecurityProfile
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>,
Source§impl Display for SecurityProfile
impl Display for SecurityProfile
Source§impl PartialEq for SecurityProfile
impl PartialEq for SecurityProfile
Source§impl Serialize for SecurityProfile
impl Serialize for SecurityProfile
impl Copy for SecurityProfile
impl Eq for SecurityProfile
impl StructuralPartialEq for SecurityProfile
Auto Trait Implementations§
impl Freeze for SecurityProfile
impl RefUnwindSafe for SecurityProfile
impl Send for SecurityProfile
impl Sync for SecurityProfile
impl Unpin for SecurityProfile
impl UnsafeUnpin for SecurityProfile
impl UnwindSafe for SecurityProfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.