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: 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 Clone for Data
[src]
impl Clone for Data
fn clone(&self) -> Data
[src]
fn clone(&self) -> Data
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[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 Debug for Data
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Data
[src]
impl PartialEq for Data
fn eq(&self, other: &Data) -> bool
[src]
fn eq(&self, other: &Data) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Data) -> bool
[src]
fn ne(&self, other: &Data) -> bool
This method tests for !=
.
impl From<Data> for Mastodon<HttpSender>
[src]
impl From<Data> for Mastodon<HttpSender>