pub struct AuthConfig { /* private fields */ }Expand description
Configuration policy for AuthPlugin and AuthHook.
Implementations§
Source§impl AuthConfig
Inherent builders for AuthConfig.
impl AuthConfig
Inherent builders for AuthConfig.
Sourcepub fn with_exempt_paths<I, S>(self, paths: I) -> Self
pub fn with_exempt_paths<I, S>(self, paths: I) -> Self
Sourcepub fn with_required_roles<I, S>(self, roles: I) -> Self
pub fn with_required_roles<I, S>(self, roles: I) -> Self
Source§impl AuthConfig
impl AuthConfig
pub fn get_exempt_paths(&self) -> &Vec<String>
pub fn get_mut_exempt_paths(&mut self) -> &mut Vec<String>
pub fn set_exempt_paths(&mut self, val: Vec<String>) -> &mut Self
pub fn get_required_roles(&self) -> &Vec<String>
pub fn get_mut_required_roles(&mut self) -> &mut Vec<String>
pub fn set_required_roles(&mut self, val: Vec<String>) -> &mut Self
pub fn get_require_all_roles(&self) -> bool
pub fn get_mut_require_all_roles(&mut self) -> &mut bool
pub fn set_require_all_roles(&mut self, val: bool) -> &mut Self
pub fn get_www_authenticate(&self) -> &String
pub fn get_mut_www_authenticate(&mut self) -> &mut String
pub fn set_www_authenticate(&mut self, val: String) -> &mut Self
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§impl Debug for AuthConfig
impl Debug for AuthConfig
Source§impl Default for AuthConfig
Default construction for AuthConfig.
impl Default for AuthConfig
Default construction for AuthConfig.
Source§fn default() -> Self
fn default() -> Self
Constructs a default AuthConfig with Bearer realm challenge and no exempt paths.
impl Eq for AuthConfig
Source§impl PartialEq for AuthConfig
impl PartialEq for AuthConfig
impl StructuralPartialEq for AuthConfig
Auto Trait Implementations§
impl Forget for AuthConfig
impl Freeze for AuthConfig
impl Move for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfigwhere
RawVecInner: Send,
impl Sync for AuthConfigwhere
RawVecInner: Sync,
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for AuthConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.