pub struct BearerOptions {
pub require_signature: bool,
}Expand description
Options for bearer token authentication.
Fields§
§require_signature: boolRequire bearer tokens to already be signed session-cookie values.
Implementations§
Source§impl BearerOptions
impl BearerOptions
pub fn builder() -> BearerOptionsBuilder
Trait Implementations§
Source§impl Clone for BearerOptions
impl Clone for BearerOptions
Source§fn clone(&self) -> BearerOptions
fn clone(&self) -> BearerOptions
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 moreimpl Copy for BearerOptions
Source§impl Debug for BearerOptions
impl Debug for BearerOptions
Source§impl Default for BearerOptions
impl Default for BearerOptions
Source§fn default() -> BearerOptions
fn default() -> BearerOptions
Returns the “default value” for a type. Read more
impl Eq for BearerOptions
Source§impl PartialEq for BearerOptions
impl PartialEq for BearerOptions
Source§fn eq(&self, other: &BearerOptions) -> bool
fn eq(&self, other: &BearerOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BearerOptions
Auto Trait Implementations§
impl Freeze for BearerOptions
impl RefUnwindSafe for BearerOptions
impl Send for BearerOptions
impl Sync for BearerOptions
impl Unpin for BearerOptions
impl UnsafeUnpin for BearerOptions
impl UnwindSafe for BearerOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.