Fix incompatible serde versions, misspelled reference (#9)

master
Bryan Tsang 8 years ago committed by Aaron Power
parent f14363956f
commit 974f9241e1
  1. 4
      Cargo.toml
  2. 2
      src/entities/account.rs
  3. 2
      src/entities/notification.rs
  4. 2
      src/entities/status.rs

@ -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>,

Loading…
Cancel
Save