Struct typed_headers::AuthScheme[][src]

pub struct AuthScheme(_);

An authorization scheme.

Methods

impl AuthScheme
[src]

BASIC: AuthScheme = AuthScheme(Inner::BASIC)

Basic authentication, as defined in RFC7617.

BEARER: AuthScheme = AuthScheme(Inner::BEARER)

Bearer authentication, as defined in RFC6750.

Constructs a new instance of this value from a string.

An error is returned if the string is not a valid token.

Returns the string representation of this token.

Trait Implementations

impl Debug for AuthScheme
[src]

Formats the value using the given formatter. Read more

impl Clone for AuthScheme
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for AuthScheme
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for AuthScheme
[src]

impl Display for AuthScheme
[src]

Formats the value using the given formatter. Read more

impl FromStr for AuthScheme
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for AuthScheme

impl Sync for AuthScheme