Struct headers_accept_encoding::authorization::Bearer
source · pub struct Bearer(_);
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 more