pub struct AuthenticatorConfig {
pub disabled: bool,
pub global: AuthenticatorGlobalConfig,
pub clients: HashMap<String, AuthenticatorClientConfig>,
}Fields§
§disabled: bool§global: AuthenticatorGlobalConfig§clients: HashMap<String, AuthenticatorClientConfig>Implementations§
Source§impl AuthenticatorConfig
impl AuthenticatorConfig
Sourcepub async fn into_client(self) -> Result<Option<Authenticator>>
pub async fn into_client(self) -> Result<Option<Authenticator>>
Create a client from a configuration. This respects the “disabled” field and returns
None in this case.
Trait Implementations§
Source§impl Clone for AuthenticatorConfig
impl Clone for AuthenticatorConfig
Source§fn clone(&self) -> AuthenticatorConfig
fn clone(&self) -> AuthenticatorConfig
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 AuthenticatorConfig
impl Debug for AuthenticatorConfig
Source§impl<'de> Deserialize<'de> for AuthenticatorConfig
impl<'de> Deserialize<'de> for AuthenticatorConfig
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 AuthenticatorConfig
impl RefUnwindSafe for AuthenticatorConfig
impl Send for AuthenticatorConfig
impl Sync for AuthenticatorConfig
impl Unpin for AuthenticatorConfig
impl UnwindSafe for AuthenticatorConfig
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<'de, T> ConfigFromEnv<'de> for Twhere
T: Deserialize<'de>,
impl<'de, T> ConfigFromEnv<'de> for Twhere
T: Deserialize<'de>,
fn from(env: Environment) -> Result<T, ConfigError>
Source§fn from_env() -> Result<Self, ConfigError>
fn from_env() -> Result<Self, ConfigError>
Get a configuration from the env-vars.
Source§fn from_env_prefix<S: AsRef<str>>(prefix: S) -> Result<Self, ConfigError>
fn from_env_prefix<S: AsRef<str>>(prefix: S) -> Result<Self, ConfigError>
Get a configuration from the env-vars, prefixing all with the provided prefix plus
the separator.