[][src]Struct mammut::Data

pub struct Data {
    pub base: Cow<'static, str>,
    pub client_id: Cow<'static, str>,
    pub client_secret: Cow<'static, str>,
    pub redirect: Cow<'static, str>,
    pub token: Cow<'static, str>,

Raw data about mastodon app. Save Data using serde to prevent needing to authenticate on every run.


base: Cow<'static, str>

Base url of instance eg. https://mastodon.social.

client_id: Cow<'static, str>

The client's id given by the instance.

client_secret: Cow<'static, str>

The client's secret given by the instance.

redirect: Cow<'static, str>

Url to redirect back to your application from the instance signup.

token: Cow<'static, str>

The client's access token.

Trait Implementations

impl PartialEq<Data> for Data[src]

impl Clone for Data[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Data[src]

impl Serialize for Data[src]

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

Auto Trait Implementations

impl Send for Data

impl Unpin for Data

impl Sync for Data

impl UnwindSafe for Data

impl RefUnwindSafe for Data

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err