Struct oauth_client::Token
[−]
[src]
pub struct Token<'a> { pub key: Cow<'a, str>, pub secret: Cow<'a, str>, }
Token structure for the OAuth
Fields
key: Cow<'a, str>
'key' field of the token
secret: Cow<'a, str>
'secret' part of the token
Methods
impl<'a> Token<'a>
[src]
fn new<K, S>(key: K, secret: S) -> Token<'a> where
K: Into<Cow<'a, str>>,
S: Into<Cow<'a, str>>,
K: Into<Cow<'a, str>>,
S: Into<Cow<'a, str>>,
Create new token from key
and secret
Examples
let consumer = oauth_client::Token::new("key", "secret");
Trait Implementations
impl<'a> Clone for Token<'a>
[src]
fn clone(&self) -> Token<'a>
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