use std::boxed::Box;
use std::option::Option;
+#[derive(Serialize, Deserialize, Debug)]
+struct AccountField {
+ name: String,
+ value: String,
+ verified_at: Option<String>, // FIXME: date
+}
+
#[derive(Serialize, Deserialize, Debug)]
struct Account {
id: String,
header: String,
header_static: String,
locked: bool,
- // fields: Vec<AccountField>,
+ fields: Vec<AccountField>,
// emojis: Vec<Emoji>,
bot: bool,
group: bool,
following_count: u64,
}
+#[derive(Serialize, Deserialize, Debug)]
+struct Application {
+ name: String,
+ website: Option<String>,
+}
+
#[derive(Serialize, Deserialize, Debug)]
struct Status {
id: String,
sensitive: bool,
spoiler_text: String,
// media_attachments: Vec<Media>,
- // application: optional Application,
+ application: Option<Application>,
// mentions: Vec<Mention>,
// tags: Vec<Hashtag>,
// emojis: Vec<Emoji>,