pub struct Authenticate { /* private fields */ }Expand description
The auth middleware: no identity, no handler.
Implementations§
Source§impl Authenticate
impl Authenticate
pub fn new() -> Self
Sourcepub fn from_config(config: &Config) -> Self
pub fn from_config(config: &Config) -> Self
Read auth.login_path from configuration.
pub fn login_path(self, path: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for Authenticate
impl Clone for Authenticate
Source§fn clone(&self) -> Authenticate
fn clone(&self) -> Authenticate
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 Authenticate
impl Debug for Authenticate
Source§impl Default for Authenticate
impl Default for Authenticate
Auto Trait Implementations§
impl Freeze for Authenticate
impl RefUnwindSafe for Authenticate
impl Send for Authenticate
impl Sync for Authenticate
impl Unpin for Authenticate
impl UnsafeUnpin for Authenticate
impl UnwindSafe for Authenticate
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