pub struct AuthManager { /* private fields */ }Expand description
Authentication manager
Implementations§
Source§impl AuthManager
impl AuthManager
Sourcepub fn new(config: OAuthConfig) -> Result<Self>
pub fn new(config: OAuthConfig) -> Result<Self>
Create a new authentication manager
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if authentication is enabled
Sourcepub fn config(&self) -> &OAuthConfig
pub fn config(&self) -> &OAuthConfig
Get configuration
Trait Implementations§
Source§impl Default for AuthManager
impl Default for AuthManager
Source§fn default() -> AuthManager
fn default() -> AuthManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AuthManager
impl RefUnwindSafe for AuthManager
impl Send for AuthManager
impl Sync for AuthManager
impl Unpin for AuthManager
impl UnsafeUnpin for AuthManager
impl UnwindSafe for AuthManager
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