pub struct ConfigSecurity {Show 18 fields
pub restricted_usernames: HashMap<String, String>,
pub maximum_login_attempts: Option<i32>,
pub enable_insecure_outgoing_connections: Option<bool>,
pub enable_multifactor_authentication: Option<bool>,
pub enforce_multifactor_authentication: Option<bool>,
pub enable_oauth_service_provider: Option<bool>,
pub enable_outgoing_oauth_connections: Option<bool>,
pub terminate_sessions_on_password_change: Option<bool>,
pub session_length_web_in_hours: Option<i32>,
pub session_length_mobile_in_hours: Option<i32>,
pub session_length_sso_in_hours: Option<i32>,
pub allow_cors_from: Option<String>,
pub cors_exposed_headers: Option<String>,
pub cors_allow_credentials: Option<bool>,
pub cors_debug: Option<bool>,
pub allow_cookies_for_subdomains: Option<bool>,
pub session_cache_in_minutes: Option<i32>,
pub email_confirmation_url: Option<String>,
}Fields§
§restricted_usernames: HashMap<String, String>§maximum_login_attempts: Option<i32>§enable_insecure_outgoing_connections: Option<bool>§enable_multifactor_authentication: Option<bool>§enforce_multifactor_authentication: Option<bool>§enable_oauth_service_provider: Option<bool>§enable_outgoing_oauth_connections: Option<bool>§terminate_sessions_on_password_change: Option<bool>§session_length_web_in_hours: Option<i32>§session_length_mobile_in_hours: Option<i32>§session_length_sso_in_hours: Option<i32>§allow_cors_from: Option<String>§cors_exposed_headers: Option<String>§cors_allow_credentials: Option<bool>§cors_debug: Option<bool>§session_cache_in_minutes: Option<i32>§email_confirmation_url: Option<String>Implementations§
Source§impl ConfigSecurity
impl ConfigSecurity
Sourcepub fn maximum_login_attempts(&self) -> i32
pub fn maximum_login_attempts(&self) -> i32
Returns the value of maximum_login_attempts, or the default value if maximum_login_attempts is unset.
Sourcepub fn enable_insecure_outgoing_connections(&self) -> bool
pub fn enable_insecure_outgoing_connections(&self) -> bool
Returns the value of enable_insecure_outgoing_connections, or the default value if enable_insecure_outgoing_connections is unset.
Sourcepub fn enable_multifactor_authentication(&self) -> bool
pub fn enable_multifactor_authentication(&self) -> bool
Returns the value of enable_multifactor_authentication, or the default value if enable_multifactor_authentication is unset.
Sourcepub fn enforce_multifactor_authentication(&self) -> bool
pub fn enforce_multifactor_authentication(&self) -> bool
Returns the value of enforce_multifactor_authentication, or the default value if enforce_multifactor_authentication is unset.
Sourcepub fn enable_oauth_service_provider(&self) -> bool
pub fn enable_oauth_service_provider(&self) -> bool
Returns the value of enable_oauth_service_provider, or the default value if enable_oauth_service_provider is unset.
Sourcepub fn enable_outgoing_oauth_connections(&self) -> bool
pub fn enable_outgoing_oauth_connections(&self) -> bool
Returns the value of enable_outgoing_oauth_connections, or the default value if enable_outgoing_oauth_connections is unset.
Sourcepub fn terminate_sessions_on_password_change(&self) -> bool
pub fn terminate_sessions_on_password_change(&self) -> bool
Returns the value of terminate_sessions_on_password_change, or the default value if terminate_sessions_on_password_change is unset.
Sourcepub fn session_length_web_in_hours(&self) -> i32
pub fn session_length_web_in_hours(&self) -> i32
Returns the value of session_length_web_in_hours, or the default value if session_length_web_in_hours is unset.
Sourcepub fn session_length_mobile_in_hours(&self) -> i32
pub fn session_length_mobile_in_hours(&self) -> i32
Returns the value of session_length_mobile_in_hours, or the default value if session_length_mobile_in_hours is unset.
Sourcepub fn session_length_sso_in_hours(&self) -> i32
pub fn session_length_sso_in_hours(&self) -> i32
Returns the value of session_length_sso_in_hours, or the default value if session_length_sso_in_hours is unset.
Sourcepub fn allow_cors_from(&self) -> &str
pub fn allow_cors_from(&self) -> &str
Returns the value of allow_cors_from, or the default value if allow_cors_from is unset.
Sourcepub fn cors_exposed_headers(&self) -> &str
pub fn cors_exposed_headers(&self) -> &str
Returns the value of cors_exposed_headers, or the default value if cors_exposed_headers is unset.
Sourcepub fn cors_allow_credentials(&self) -> bool
pub fn cors_allow_credentials(&self) -> bool
Returns the value of cors_allow_credentials, or the default value if cors_allow_credentials is unset.
Sourcepub fn cors_debug(&self) -> bool
pub fn cors_debug(&self) -> bool
Returns the value of cors_debug, or the default value if cors_debug is unset.
Returns the value of allow_cookies_for_subdomains, or the default value if allow_cookies_for_subdomains is unset.
Sourcepub fn session_cache_in_minutes(&self) -> i32
pub fn session_cache_in_minutes(&self) -> i32
Returns the value of session_cache_in_minutes, or the default value if session_cache_in_minutes is unset.
Sourcepub fn email_confirmation_url(&self) -> &str
pub fn email_confirmation_url(&self) -> &str
Returns the value of email_confirmation_url, or the default value if email_confirmation_url is unset.
Trait Implementations§
Source§impl Clone for ConfigSecurity
impl Clone for ConfigSecurity
Source§fn clone(&self) -> ConfigSecurity
fn clone(&self) -> ConfigSecurity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConfigSecurity
impl Debug for ConfigSecurity
Source§impl Default for ConfigSecurity
impl Default for ConfigSecurity
Source§impl Message for ConfigSecurity
impl Message for ConfigSecurity
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ConfigSecurity
impl PartialEq for ConfigSecurity
impl StructuralPartialEq for ConfigSecurity
Auto Trait Implementations§
impl Freeze for ConfigSecurity
impl RefUnwindSafe for ConfigSecurity
impl Send for ConfigSecurity
impl Sync for ConfigSecurity
impl Unpin for ConfigSecurity
impl UnwindSafe for ConfigSecurity
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<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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request