Struct oauthcli::OAuthAuthorizationHeader
[−]
[src]
pub struct OAuthAuthorizationHeader { /* fields omitted */ }Authorization header for OAuth.
Example
let header: OAuthAuthorizationHeader = "oauth_consumer_key=\"foo\"".parse().unwrap(); assert_eq!(header.to_string(), "OAuth oauth_consumer_key=\"foo\"");
Methods
impl OAuthAuthorizationHeader[src]
Trait Implementations
impl Debug for OAuthAuthorizationHeader[src]
impl Clone for OAuthAuthorizationHeader[src]
fn clone(&self) -> OAuthAuthorizationHeader[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Display for OAuthAuthorizationHeader[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl FromStr for OAuthAuthorizationHeader[src]
type Err = ParseOAuthAuthorizationHeaderError
The associated error which can be returned from parsing.
fn from_str(
s: &str
) -> Result<OAuthAuthorizationHeader, ParseOAuthAuthorizationHeaderError>[src]
s: &str
) -> Result<OAuthAuthorizationHeader, ParseOAuthAuthorizationHeaderError>
Parses a string s to return a value of this type. Read more