Struct twitter_stream::Token
[−]
[src]
pub struct Token<'a> { pub consumer_key: Cow<'a, str>, pub consumer_secret: Cow<'a, str>, pub access_key: Cow<'a, str>, pub access_secret: Cow<'a, str>, }
An OAuth token used to log into Twitter.
Fields
consumer_key: Cow<'a, str>
consumer_secret: Cow<'a, str>
access_key: Cow<'a, str>
access_secret: Cow<'a, str>
Methods
impl<'a> Token<'a>
[src]
fn new<CK, CS, AK, AS>(
consumer_key: CK,
consumer_secret: CS,
access_key: AK,
access_secret: AS
) -> Self where
CK: Into<Cow<'a, str>>,
CS: Into<Cow<'a, str>>,
AK: Into<Cow<'a, str>>,
AS: Into<Cow<'a, str>>,
consumer_key: CK,
consumer_secret: CS,
access_key: AK,
access_secret: AS
) -> Self where
CK: Into<Cow<'a, str>>,
CS: Into<Cow<'a, str>>,
AK: Into<Cow<'a, str>>,
AS: Into<Cow<'a, str>>,
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