[−][src]Struct twitter_stream::Token
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]
client_identifier: C,
client_secret: C,
token_identifier: T,
token_secret: T
) -> Self
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,
C: Send,
T: Send,
impl<C, T> Sync for Token<C, T> where
C: Sync,
T: Sync,
C: Sync,
T: Sync,
impl<C, T> Unpin for Token<C, T> where
C: Unpin,
T: Unpin,
C: Unpin,
T: Unpin,
impl<C, T> UnwindSafe for Token<C, T> where
C: UnwindSafe,
T: UnwindSafe,
C: UnwindSafe,
T: UnwindSafe,
impl<C, T> RefUnwindSafe for Token<C, T> where
C: RefUnwindSafe,
T: RefUnwindSafe,
C: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Ffn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut F
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> for T
type Output = T
Should always be Self