Struct oauthcli::OAuthAuthorizationHeader [] [src]

pub struct OAuthAuthorizationHeader {
    // some fields omitted
}

Authorization header for OAuth.

If you enable "hyper" feature, this implements hyper::header::Scheme trait.

Example

let header: OAuthAuthorizationHeader = "oauth_consumer_key=\"foo\"".parse().unwrap();
assert_eq!(header.to_string(), "OAuth oauth_consumer_key=\"foo\"");

Methods

impl OAuthAuthorizationHeader
[src]

fn auth_param(&self) -> &str

auth-param in RFC 7235

fn auth_param_owned(self) -> String

Trait Implementations

impl Clone for OAuthAuthorizationHeader
[src]

fn clone(&self) -> OAuthAuthorizationHeader

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for OAuthAuthorizationHeader
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for OAuthAuthorizationHeader
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl FromStr for OAuthAuthorizationHeader
[src]

type Err = ParseOAuthAuthorizationHeaderError

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<OAuthAuthorizationHeaderParseOAuthAuthorizationHeaderError>

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

impl Scheme for OAuthAuthorizationHeader
[src]

fn scheme() -> Option<&'static str>

An optional Scheme name. Read more

fn fmt_scheme(&self, f: &mut Formatter) -> Result

Format the Scheme data into a header value.