forked from MightyPork/elefren-fork
Initial commit
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
use chrono::prelude::*;
|
||||
use super::prelude::*;
|
||||
use status_builder::Visibility;
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct Status {
|
||||
pub id: i64,
|
||||
pub uri: String,
|
||||
pub url: String,
|
||||
pub account: Account,
|
||||
pub in_reply_to_id: Option<u64>,
|
||||
pub in_reply_to_account_id: Option<u64>,
|
||||
pub reblog: Option<Box<Status>>,
|
||||
pub content: String,
|
||||
pub created_at: DateTime<UTC>,
|
||||
pub reblogs_count: u64,
|
||||
pub favourites_count: u64,
|
||||
pub reblogged: bool,
|
||||
pub favourited: bool,
|
||||
pub sensitive: bool,
|
||||
pub spoiler_text: String,
|
||||
pub visibility: Visibility,
|
||||
pub media_attachments: Vec<Attachment>,
|
||||
pub mentions: Vec<Mention>,
|
||||
pub tags: Vec<Tag>,
|
||||
pub application: Application,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct Mention {
|
||||
pub url: String,
|
||||
pub username: String,
|
||||
pub acct: String,
|
||||
pub id: u64,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct Tag {
|
||||
pub name: String,
|
||||
pub url: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct Application {
|
||||
pub name: String,
|
||||
pub website: String,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user