[−][src]Enum egg_mode::auth::Token
A token that can be used to sign requests to Twitter.
Conceptually, a Token represents your authorization to call the Twitter API. It can either be a Bearer token, representing a "logged-out" view of Twitter coming from your app itself; or an Access token, representing a combination of your app's "consumer" key with a specific user granting access for your app to use the Twitter API on their behalf. For more information, see the authentication documentation.
Once you have obtained a Token of either kind, the keys within may be saved and reused in the future, as long as the access has not been revoked. Note that the keys saved in this type work just like a password, and they should be handled with care when you save them! If you believe your keys have been compromised, you can generate a new consumer token in Twitter's Apps Dashboard, and if you've been using a Bearer token, you should invalidate it and generate a new one.
Variants
An OAuth Access token indicating the request is coming from a specific user.
Fields of Access
Bearer(String)
An OAuth Bearer token indicating the request is coming from the application itself, not a particular user.
Trait Implementations
impl Clone for Token
[src]
impl Debug for Token
[src]
impl<'de> Deserialize<'de> for Token
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Token
[src]
Auto Trait Implementations
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,