Struct headers_ext::Bearer [−][src]
pub struct Bearer(_);
Token holder for Bearer Authentication, most often seen with oauth
Methods
impl Bearer
[src]
impl Bearer
Trait Implementations
impl Clone for Bearer
[src]
impl Clone for Bearer
fn clone(&self) -> Bearer
[src]
fn clone(&self) -> Bearer
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Bearer
[src]
impl PartialEq for Bearer
fn eq(&self, other: &Bearer) -> bool
[src]
fn eq(&self, other: &Bearer) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Bearer) -> bool
[src]
fn ne(&self, other: &Bearer) -> bool
This method tests for !=
.
impl Debug for Bearer
[src]
impl Debug for Bearer
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Credentials for Bearer
[src]
impl Credentials for Bearer
const SCHEME: &'static str
SCHEME: &'static str = "Bearer"
The scheme identify the format of these credentials. Read more
fn decode(value: &HeaderValue) -> Option<Self>
[src]
fn decode(value: &HeaderValue) -> Option<Self>
Try to decode the credentials from the HeaderValue
. Read more
fn encode(&self) -> HeaderValue
[src]
fn encode(&self) -> HeaderValue
Encode the credentials to a HeaderValue
. Read more