Struct mammut::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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Data
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Data
[src]

[src]

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

[src]

This method tests for !=.