Struct typed_headers::Credentials[][src]

pub struct Credentials { /* fields omitted */ }

Authentication credentials, as described in RFC7235.

Methods

impl Credentials
[src]

Creates credentials from just an auth-scheme.

Creates credentials from an auth-scheme and token68 data.

Creates Bearer authentication credentials as described in RFC6750.

Creates Basic authentication credentials as described in [RFC7617].

Returns the auth-scheme associated with the credentials.

Returns the token68 value associated with the credentials if present.

Returns the bearer token if this contains Bearer credentials.

Trait Implementations

impl Debug for Credentials
[src]

Formats the value using the given formatter. Read more

impl Clone for Credentials
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Credentials
[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 Credentials
[src]

impl Display for Credentials
[src]

Formats the value using the given formatter. Read more

impl FromStr for Credentials
[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 Credentials

impl Sync for Credentials