Struct oauth_client::Token [−][src]
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]
impl<'a> Token<'a>pub fn new<K, S>(key: K, secret: S) -> Token<'a> where
K: Into<Cow<'a, str>>,
S: Into<Cow<'a, str>>, [src]
pub fn new<K, S>(key: K, secret: S) -> Token<'a> where
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]
impl<'a> Clone for Token<'a>fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<'a> Debug for Token<'a>[src]
impl<'a> Debug for Token<'a>