forked from MightyPork/elefren-fork
Updated status to handle more nulls
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "mammut"
|
name = "mammut"
|
||||||
version = "0.3.0"
|
version = "0.4.0"
|
||||||
description = "A wrapper around the Mastodon API."
|
description = "A wrapper around the Mastodon API."
|
||||||
authors = ["Aaron Power <theaaronepower@gmail.com>"]
|
authors = ["Aaron Power <theaaronepower@gmail.com>"]
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT/Apache-2.0"
|
||||||
|
|||||||
@@ -15,15 +15,15 @@ pub struct Status {
|
|||||||
pub created_at: DateTime<UTC>,
|
pub created_at: DateTime<UTC>,
|
||||||
pub reblogs_count: u64,
|
pub reblogs_count: u64,
|
||||||
pub favourites_count: u64,
|
pub favourites_count: u64,
|
||||||
pub reblogged: bool,
|
pub reblogged: Option<bool>,
|
||||||
pub favourited: bool,
|
pub favourited: Option<bool>,
|
||||||
pub sensitive: bool,
|
pub sensitive: Option<bool>,
|
||||||
pub spoiler_text: String,
|
pub spoiler_text: String,
|
||||||
pub visibility: Visibility,
|
pub visibility: Visibility,
|
||||||
pub media_attachments: Vec<Attachment>,
|
pub media_attachments: Vec<Attachment>,
|
||||||
pub mentions: Vec<Mention>,
|
pub mentions: Vec<Mention>,
|
||||||
pub tags: Vec<Tag>,
|
pub tags: Vec<Tag>,
|
||||||
pub application: Application,
|
pub application: Option<Application>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
|
|||||||
Reference in New Issue
Block a user