pub struct Account {Show 19 fields
pub acct: String,
pub avatar: String,
pub avatar_static: String,
pub created_at: OffsetDateTime,
pub display_name: String,
pub followers_count: u64,
pub following_count: u64,
pub header: String,
pub header_static: String,
pub id: AccountId,
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>,
}Expand description
A struct representing an Account.
Fields§
§acct: StringEquals username for local users, includes @domain for remote ones.
avatar: StringURL to the avatar image
avatar_static: StringURL to the avatar static image (gif)
created_at: OffsetDateTimeThe time the account was created.
display_name: StringThe account’s display name.
followers_count: u64The number of followers for the account.
following_count: u64The number of accounts the given account is following.
header: StringURL to the header image.
header_static: StringURL to the header static image (gif).
id: AccountIdThe ID of the account.
locked: boolBoolean for when the account cannot be followed without waiting for approval first.
note: StringBiography of user.
statuses_count: u64The number of statuses the account has made.
url: StringURL of the user’s profile page (can be remote).
username: StringThe 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