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]
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]
impl Display for OAuthAuthorizationHeader
[src]
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>
Parses a string s
to return a value of this type. Read more