mastodon API rust lib elefren, fixed and updated. and also all ASYNC! NB. most examples are now wrong.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
use chrono::prelude::*;
|
|
|
|
#[derive(Debug, Clone, Deserialize)]
|
|
|
|
pub struct Account {
|
|
|
|
pub id: u64,
|
|
|
|
pub username: String,
|
|
|
|
pub acct: String,
|
|
|
|
pub display_name: String,
|
|
|
|
pub note: String,
|
|
|
|
pub url: String,
|
|
|
|
pub avatar: String,
|
|
|
|
pub avatar_static: String,
|
|
|
|
pub header: String,
|
|
|
|
pub header_static: String,
|
|
|
|
pub locked: bool,
|
|
|
|
pub created_at: DateTime<Utc>,
|
|
|
|
pub followers_count: u64,
|
|
|
|
pub following_count: u64,
|
|
|
|
pub statuses_count: u64,
|
|
|
|
}
|