pub struct AuthModeConfig {
pub mode: AuthMode,
}Fields§
§mode: AuthModeImplementations§
Source§impl AuthModeConfig
impl AuthModeConfig
pub fn from_sources( vars: impl IntoIterator<Item = (String, String)>, ) -> Result<Self, AuthError>
pub fn from_sources_with_prefix( vars: impl IntoIterator<Item = (String, String)>, env_prefix: &str, ) -> Result<Self, AuthError>
Trait Implementations§
Source§impl Clone for AuthModeConfig
impl Clone for AuthModeConfig
Source§fn clone(&self) -> AuthModeConfig
fn clone(&self) -> AuthModeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AuthModeConfig
impl Debug for AuthModeConfig
Source§impl Default for AuthModeConfig
impl Default for AuthModeConfig
Source§fn default() -> AuthModeConfig
fn default() -> AuthModeConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for AuthModeConfig
impl PartialEq for AuthModeConfig
Source§fn eq(&self, other: &AuthModeConfig) -> bool
fn eq(&self, other: &AuthModeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AuthModeConfig
impl StructuralPartialEq for AuthModeConfig
Auto Trait Implementations§
impl Freeze for AuthModeConfig
impl RefUnwindSafe for AuthModeConfig
impl Send for AuthModeConfig
impl Sync for AuthModeConfig
impl Unpin for AuthModeConfig
impl UnsafeUnpin for AuthModeConfig
impl UnwindSafe for AuthModeConfig
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more