pub struct AuthorizeOptions {
pub prev_secret: Option<String>,
pub callback: Option<UnauthorizedCallback>,
}Expand description
Options for authorize middleware.
Fields§
§prev_secret: Option<String>§callback: Option<UnauthorizedCallback>Trait Implementations§
Source§impl Clone for AuthorizeOptions
impl Clone for AuthorizeOptions
Source§fn clone(&self) -> AuthorizeOptions
fn clone(&self) -> AuthorizeOptions
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 Default for AuthorizeOptions
impl Default for AuthorizeOptions
Source§fn default() -> AuthorizeOptions
fn default() -> AuthorizeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AuthorizeOptions
impl !RefUnwindSafe for AuthorizeOptions
impl Send for AuthorizeOptions
impl Sync for AuthorizeOptions
impl Unpin for AuthorizeOptions
impl !UnwindSafe for AuthorizeOptions
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