[][src]Struct rememberthemilk::RTMConfig

pub struct RTMConfig {
    pub api_key: Option<String>,
    pub api_secret: Option<String>,
    pub token: Option<String>,
    pub user: Option<User>,
}

rememberthemilk API and authentication configuration. This holds the persistent state for the app authentication and possibly user authentication.

Fields

api_key: Option<String>

The rememberthemilk API key. See RTM API to request an API key and secret.

api_secret: Option<String>

The rememberthemilk API secret. See RTM API to request an API key and secret.

token: Option<String>

A user authentication token retrieved from rememberthemilk. This can be None but the user will need to authenticate before using the API.

user: Option<User>

Details of the currently authenticated user.

Methods

impl RTMConfig[src]

pub fn clear_user_data(&mut self)[src]

Clear any user-specific data (auth tokens, user info, etc.)

Trait Implementations

impl Default for RTMConfig[src]

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

impl Serialize for RTMConfig[src]

Auto Trait Implementations

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<T> From<T> for T[src]

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