forked from MightyPork/elefren-fork
Fix incompatible serde versions, misspelled reference (#9)
This commit is contained in:
+1
-3
@@ -16,7 +16,5 @@ serde_json = "1"
|
|||||||
serde_derive = "1"
|
serde_derive = "1"
|
||||||
|
|
||||||
[dependencies.chrono]
|
[dependencies.chrono]
|
||||||
# Locked to 0.3.0 since chrono 0.3.1 uses serde ^1, which is incompatible
|
version = "0.4"
|
||||||
# with serde 0.9 specified above.
|
|
||||||
version = "0.3"
|
|
||||||
features = ["serde"]
|
features = ["serde"]
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ pub struct Account {
|
|||||||
pub header: String,
|
pub header: String,
|
||||||
pub header_static: String,
|
pub header_static: String,
|
||||||
pub locked: bool,
|
pub locked: bool,
|
||||||
pub created_at: DateTime<UTC>,
|
pub created_at: DateTime<Utc>,
|
||||||
pub followers_count: u64,
|
pub followers_count: u64,
|
||||||
pub following_count: u64,
|
pub following_count: u64,
|
||||||
pub statuses_count: u64,
|
pub statuses_count: u64,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ pub struct Notification {
|
|||||||
pub id: u64,
|
pub id: u64,
|
||||||
#[serde(rename = "type")]
|
#[serde(rename = "type")]
|
||||||
pub notification_type: NotificationType,
|
pub notification_type: NotificationType,
|
||||||
pub created_at: DateTime<UTC>,
|
pub created_at: DateTime<Utc>,
|
||||||
pub account: Account,
|
pub account: Account,
|
||||||
pub status: Option<Status>,
|
pub status: Option<Status>,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ pub struct Status {
|
|||||||
pub in_reply_to_account_id: Option<u64>,
|
pub in_reply_to_account_id: Option<u64>,
|
||||||
pub reblog: Option<Box<Status>>,
|
pub reblog: Option<Box<Status>>,
|
||||||
pub content: String,
|
pub content: String,
|
||||||
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: Option<bool>,
|
pub reblogged: Option<bool>,
|
||||||
|
|||||||
Reference in New Issue
Block a user