[][src]Enum threescalers::application::Application

pub enum Application {
    AppId(AppIdOption<AppKey>),
    UserKey(UserKey),
    OAuthToken(OAuthToken),
}

Variants

AppId(AppIdOption<AppKey>)
UserKey(UserKey)
OAuthToken(OAuthToken)

Methods

impl Application[src]

pub fn from_app_id<T: Into<AppId>>(app_id: T) -> Self[src]

Creates a new Application from an AppId.

Examples

use threescalers::application::*;

let app = Application::from_app_id("my_app_id");

pub fn from_app_id_and_key<T: Into<AppId>, U: Into<AppKey>>(
    app_id: T,
    app_key: U
) -> Self
[src]

Creates a new Application from an AppId and an AppKey.

Examples

use threescalers::application::*;

let app = Application::from_app_id_and_key("my_app_id", "my_app_key");

pub fn from_user_key<T: Into<UserKey>>(user_key: T) -> Self[src]

Creates a new Application from a UserKey.

Examples

use threescalers::application::*;

let app = Application::from_user_key("my_user_key");

pub fn from_oauth_token<T: Into<OAuthToken>>(token: T) -> Self[src]

Creates a new Application from an OAuthToken.

Examples

use threescalers::application::*;

let app = Application::from_oauth_token("my_token");

Trait Implementations

impl Clone for Application[src]

impl PartialEq<Application> for Application[src]

impl From<AppId> for Application[src]

impl From<(AppId, AppKey)> for Application[src]

impl From<UserKey> for Application[src]

impl From<OAuthToken> for Application[src]

impl Debug for Application[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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