pub struct BasicAuthCredsConfig<Creds>where
Creds: BasicAuthCred,{
pub users: Vec<Creds>,
}Expand description
Configuration for Basic Authentication.
Fields§
§users: Vec<Creds>List of allowed credentials.
Implementations§
Source§impl<Creds> BasicAuthCredsConfig<Creds>where
Creds: BasicAuthCred,
impl<Creds> BasicAuthCredsConfig<Creds>where
Creds: BasicAuthCred,
Sourcepub fn validate(&self) -> Result<(), CredsError>
pub fn validate(&self) -> Result<(), CredsError>
Validate the configuration.
Trait Implementations§
Source§impl<Creds> Clone for BasicAuthCredsConfig<Creds>where
Creds: BasicAuthCred + Clone,
impl<Creds> Clone for BasicAuthCredsConfig<Creds>where
Creds: BasicAuthCred + Clone,
Source§fn clone(&self) -> BasicAuthCredsConfig<Creds>
fn clone(&self) -> BasicAuthCredsConfig<Creds>
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<Creds> Debug for BasicAuthCredsConfig<Creds>where
Creds: BasicAuthCred + Debug,
impl<Creds> Debug for BasicAuthCredsConfig<Creds>where
Creds: BasicAuthCred + Debug,
Source§impl<Creds> Default for BasicAuthCredsConfig<Creds>where
Creds: BasicAuthCred,
impl<Creds> Default for BasicAuthCredsConfig<Creds>where
Creds: BasicAuthCred,
Source§impl<'de, Creds> Deserialize<'de> for BasicAuthCredsConfig<Creds>where
Creds: BasicAuthCred + Deserialize<'de>,
impl<'de, Creds> Deserialize<'de> for BasicAuthCredsConfig<Creds>where
Creds: BasicAuthCred + Deserialize<'de>,
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
Source§impl<Creds> Serialize for BasicAuthCredsConfig<Creds>where
Creds: BasicAuthCred + Serialize,
impl<Creds> Serialize for BasicAuthCredsConfig<Creds>where
Creds: BasicAuthCred + Serialize,
Auto Trait Implementations§
impl<Creds> Freeze for BasicAuthCredsConfig<Creds>
impl<Creds> RefUnwindSafe for BasicAuthCredsConfig<Creds>where
Creds: RefUnwindSafe,
impl<Creds> Send for BasicAuthCredsConfig<Creds>where
Creds: Send,
impl<Creds> Sync for BasicAuthCredsConfig<Creds>where
Creds: Sync,
impl<Creds> Unpin for BasicAuthCredsConfig<Creds>where
Creds: Unpin,
impl<Creds> UnsafeUnpin for BasicAuthCredsConfig<Creds>
impl<Creds> UnwindSafe for BasicAuthCredsConfig<Creds>where
Creds: UnwindSafe,
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