[][src]Struct elefren::entities::account::Account

pub struct Account {
    pub acct: String,
    pub avatar: String,
    pub avatar_static: String,
    pub created_at: DateTime<Utc>,
    pub display_name: String,
    pub followers_count: u64,
    pub following_count: u64,
    pub header: String,
    pub header_static: String,
    pub id: String,
    pub locked: bool,
    pub note: String,
    pub statuses_count: u64,
    pub url: String,
    pub username: String,
    pub source: Option<Source>,
    pub moved: Option<Box<Account>>,
    pub fields: Option<Vec<MetadataField>>,
    pub bot: Option<bool>,
}

A struct representing an Account.

Fields

acct: String

Equals username for local users, includes @domain for remote ones.

avatar: String

URL to the avatar image

avatar_static: String

URL to the avatar static image (gif)

created_at: DateTime<Utc>

The time the account was created.

display_name: String

The account's display name.

followers_count: u64

The number of followers for the account.

following_count: u64

The number of accounts the given account is following.

header: String

URL to the header image.

header_static: String

URL to the header static image (gif).

id: String

The ID of the account.

locked: bool

Boolean for when the account cannot be followed without waiting for approval first.

note: String

Biography of user.

statuses_count: u64

The number of statuses the account has made.

url: String

URL of the user's profile page (can be remote).

username: String

The username of the account.

source: Option<Source>

An extra attribute given from verify_credentials giving defaults about a user

moved: Option<Box<Account>>

If the owner decided to switch accounts, new account is in this attribute

fields: Option<Vec<MetadataField>>

List of profile metadata fields

bot: Option<bool>

Boolean indicating whether this account is a bot or not

Trait Implementations

impl PartialEq<Account> for Account[src]

impl Clone for Account[src]

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

Performs copy-assignment from source. Read more

impl Debug for Account[src]

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

Auto Trait Implementations

impl Send for Account

impl Sync for Account

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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