Struct scoopit_api::AccessToken [−][src]
pub struct AccessToken { /* fields omitted */ }
An access token
Implementations
impl AccessToken
[src]
impl AccessToken
[src]pub fn new(access_token: String) -> Self
[src]
Creates a never expiring access token.
This token will never be renewed. If it comes to expire, all requests using it will fail.
pub fn with_renew(access_token: String, renew: Option<AccessTokenRenew>) -> Self
[src]
Creates an access token.
If renew
is provided the access will automatically renewed if needed.
Auto Trait Implementations
impl RefUnwindSafe for AccessToken
impl RefUnwindSafe for AccessToken
impl Send for AccessToken
impl Send for AccessToken
impl Sync for AccessToken
impl Sync for AccessToken
impl Unpin for AccessToken
impl Unpin for AccessToken
impl UnwindSafe for AccessToken
impl UnwindSafe for AccessToken
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]