Struct elefren::data::Data[][src]

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.

Fields

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

The client's id given by the instance.

The client's secret given by the instance.

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

The client's access token.

Trait Implementations

impl Clone for Data
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Data
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Data
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<Data> for Mastodon<HttpSender>
[src]

Creates a mastodon instance from the data struct.

Auto Trait Implementations

impl Send for Data

impl Sync for Data