Struct actix_web_httpauth::headers::authorization::Bearer [−][src]
pub struct Bearer {
pub token: String,
}Credentials for Bearer authentication scheme, defined in RFC6750
Should be used in combination with Authorization header.
Fields
token: String
Trait Implementations
impl Clone for Bearer[src]
impl Clone for Bearerfn clone(&self) -> Bearer[src]
fn clone(&self) -> BearerReturns 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)Performs copy-assignment from source. Read more
impl Eq for Bearer[src]
impl Eq for Bearerimpl Ord for Bearer[src]
impl Ord for Bearerfn cmp(&self, other: &Bearer) -> Ordering[src]
fn cmp(&self, other: &Bearer) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialEq for Bearer[src]
impl PartialEq for Bearerfn eq(&self, other: &Bearer) -> bool[src]
fn eq(&self, other: &Bearer) -> boolThis 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) -> boolThis method tests for !=.
impl PartialOrd for Bearer[src]
impl PartialOrd for Bearerfn partial_cmp(&self, other: &Bearer) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Bearer) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Bearer) -> bool[src]
fn lt(&self, other: &Bearer) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Bearer) -> bool[src]
fn le(&self, other: &Bearer) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Bearer) -> bool[src]
fn gt(&self, other: &Bearer) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Bearer) -> bool[src]
fn ge(&self, other: &Bearer) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Scheme for Bearer[src]
impl Scheme for Bearerfn parse(header: &HeaderValue) -> Result<Self, ParseError>[src]
fn parse(header: &HeaderValue) -> Result<Self, ParseError>impl Debug for Bearer[src]
impl Debug for Bearerfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for Bearer[src]
impl Display for Bearerfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl IntoHeaderValue for Bearer[src]
impl IntoHeaderValue for Bearertype Error = InvalidHeaderValueBytes
The type returned in the event of a conversion error.
fn try_into(self) -> Result<HeaderValue, Self::Error>[src]
fn try_into(self) -> Result<HeaderValue, Self::Error>Try to convert value to a Header value.