[][src]Struct twitter_stream::Token

pub struct Token<C = String, T = String> {
    pub client: Credentials<C>,
    pub token: Credentials<T>,
}

An OAuth token used to log into Twitter.

Fields

client: Credentials<C>token: Credentials<T>

Methods

impl<C: Borrow<str>, T: Borrow<str>> Token<C, T>[src]

pub fn new(
    client_identifier: C,
    client_secret: C,
    token_identifier: T,
    token_secret: T
) -> Self
[src]

pub fn from_credentials(client: Credentials<C>, token: Credentials<T>) -> Self[src]

pub fn as_ref(&self) -> Token<&str, &str>[src]

Borrow token strings from self and make a new Token with them.

Trait Implementations

impl<C: Clone, T: Clone> Clone for Token<C, T>[src]

impl<C: Copy, T: Copy> Copy for Token<C, T>[src]

impl<C: Debug, T: Debug> Debug for Token<C, T>[src]

Auto Trait Implementations

impl<C, T> Send for Token<C, T> where
    C: Send,
    T: Send

impl<C, T> Sync for Token<C, T> where
    C: Sync,
    T: Sync

impl<C, T> Unpin for Token<C, T> where
    C: Unpin,
    T: Unpin

impl<C, T> UnwindSafe for Token<C, T> where
    C: UnwindSafe,
    T: UnwindSafe

impl<C, T> RefUnwindSafe for Token<C, T> where
    C: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self