Updated status to handle more nulls

This commit is contained in:
Aaron Power
2017-04-21 15:18:11 +01:00
parent a528624dc3
commit 69cec5bf7e
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -15,15 +15,15 @@ pub struct Status {
pub created_at: DateTime<UTC>,
pub reblogs_count: u64,
pub favourites_count: u64,
pub reblogged: bool,
pub favourited: bool,
pub sensitive: bool,
pub reblogged: Option<bool>,
pub favourited: Option<bool>,
pub sensitive: Option<bool>,
pub spoiler_text: String,
pub visibility: Visibility,
pub media_attachments: Vec<Attachment>,
pub mentions: Vec<Mention>,
pub tags: Vec<Tag>,
pub application: Application,
pub application: Option<Application>,
}
#[derive(Debug, Clone, Deserialize)]