[−][src]Struct rememberthemilk::RTMConfig
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for RTMConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for RTMConfig
impl Send for RTMConfig
impl Sync for RTMConfig
impl Unpin for RTMConfig
impl UnwindSafe for RTMConfig
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, 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>,