[][src]Struct heroku_rs::endpoints::oauth::OAuth

pub struct OAuth {
    pub access_token: Option<AccessToken>,
    pub client: Option<Client>,
    pub created_at: DateTime<Utc>,
    pub grant: Option<Grant>,
    pub id: String,
    pub refresh_token: Option<RefreshToken>,
    pub scope: Vec<String>,
    pub updated_at: DateTime<Utc>,
    pub user: User,
}

OAuth Authorization

Stability: production

OAuth authorizations represent clients that a Heroku user has authorized to automate, customize or extend their usage of the platform.

For more information please refer to the Heroku OAuth documentation

Fields

access_token: Option<AccessToken>

access token for this authorization

client: Option<Client>

identifier of the client that obtained this authorization, if any

created_at: DateTime<Utc>

when OAuth authorization was created

grant: Option<Grant>

this authorization’s grant

id: String

unique identifier of OAuth authorization

refresh_token: Option<RefreshToken>

refresh token for this authorization

scope: Vec<String>

The scope of access OAuth authorization allows

updated_at: DateTime<Utc>

when OAuth authorization was updated

user: User

User account

Trait Implementations

impl ApiResult for OAuth[src]

impl Clone for OAuth[src]

impl Debug for OAuth[src]

impl<'de> Deserialize<'de> for OAuth[src]

impl Eq for OAuth[src]

impl HerokuEndpoint<OAuth, (), ()> for OAuthDelete[src]

impl HerokuEndpoint<OAuth, (), ()> for OAuthDetails[src]

impl HerokuEndpoint<OAuth, (), ()> for OAuthRegenerate[src]

impl HerokuEndpoint<OAuth, (), OAuthCreateParams> for OAuthCreate[src]

impl PartialEq<OAuth> for OAuth[src]

impl Serialize for OAuth[src]

impl StructuralEq for OAuth[src]

impl StructuralPartialEq for OAuth[src]

Auto Trait Implementations

impl RefUnwindSafe for OAuth

impl Send for OAuth

impl Sync for OAuth

impl Unpin for OAuth

impl UnwindSafe for OAuth

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<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.