Struct headers::authorization::Bearer
source · [−]pub struct Bearer(_);
Expand description
Token holder for Bearer Authentication, most often seen with oauth
Implementations
Trait Implementations
sourceimpl Credentials for Bearer
impl Credentials for Bearer
sourceconst SCHEME: &'static str = "Bearer"
const SCHEME: &'static str = "Bearer"
The scheme identify the format of these credentials. Read more
sourcefn decode(value: &HeaderValue) -> Option<Self>
fn decode(value: &HeaderValue) -> Option<Self>
Try to decode the credentials from the HeaderValue
. Read more
sourcefn encode(&self) -> HeaderValue
fn encode(&self) -> HeaderValue
Encode the credentials to a HeaderValue
. Read more
sourceimpl PartialEq<Bearer> for Bearer
impl PartialEq<Bearer> for Bearer
impl StructuralPartialEq for Bearer
Auto Trait Implementations
impl RefUnwindSafe for Bearer
impl Send for Bearer
impl Sync for Bearer
impl Unpin for Bearer
impl UnwindSafe for Bearer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more