pub struct SecuritySettings {
pub default_policy: Option<String>,
pub rules: Vec<AuthorizationRule>,
pub policies: Vec<AuthorizationPolicy>,
pub field_auth: Vec<FieldAuthRule>,
pub enterprise: EnterpriseSecurityConfig,
}Expand description
Security configuration
Fields§
§default_policy: Option<String>Default policy to apply if none specified
rules: Vec<AuthorizationRule>Custom authorization rules
policies: Vec<AuthorizationPolicy>Authorization policies
field_auth: Vec<FieldAuthRule>Field-level authorization rules
enterprise: EnterpriseSecurityConfigEnterprise security configuration
Trait Implementations§
Source§impl Clone for SecuritySettings
impl Clone for SecuritySettings
Source§fn clone(&self) -> SecuritySettings
fn clone(&self) -> SecuritySettings
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 SecuritySettings
impl Debug for SecuritySettings
Source§impl Default for SecuritySettings
impl Default for SecuritySettings
Source§impl<'de> Deserialize<'de> for SecuritySettingswhere
SecuritySettings: Default,
impl<'de> Deserialize<'de> for SecuritySettingswhere
SecuritySettings: Default,
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 SecuritySettings
impl RefUnwindSafe for SecuritySettings
impl Send for SecuritySettings
impl Sync for SecuritySettings
impl Unpin for SecuritySettings
impl UnwindSafe for SecuritySettings
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