Struct headers::authorization::Bearer
source · pub struct Bearer(/* private fields */);
Expand description
Token holder for Bearer Authentication, most often seen with oauth
Implementations§
Trait Implementations§
source§impl Credentials for Bearer
impl Credentials for Bearer
source§const SCHEME: &'static str = "Bearer"
const SCHEME: &'static str = "Bearer"
The scheme identify the format of these credentials. Read more
source§fn decode(value: &HeaderValue) -> Option<Self>
fn decode(value: &HeaderValue) -> Option<Self>
Try to decode the credentials from the
HeaderValue
. Read moresource§fn encode(&self) -> HeaderValue
fn encode(&self) -> HeaderValue
Encode the credentials to a
HeaderValue
. Read moreimpl StructuralPartialEq for Bearer
Auto Trait Implementations§
impl !Freeze for Bearer
impl RefUnwindSafe for Bearer
impl Send for Bearer
impl Sync for Bearer
impl Unpin for Bearer
impl UnwindSafe for Bearer
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)