Skip to content

Commit

Permalink
Add article, oops
Browse files Browse the repository at this point in the history
  • Loading branch information
asonix committed Jun 11, 2018
1 parent 1ae43ce commit 0097591
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/object/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ pub mod properties;

use self::{kind::*, properties::*};

#[derive(Clone, Debug, Default, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Article {
#[serde(rename = "type")]
kind: ArticleType,

#[serde(flatten)]
pub object_props: ObjectProperties,

#[serde(flatten)]
pub ap_object_props: ApObjectProperties,
}

impl Object for Article {}

#[derive(Clone, Debug, Default, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Audio {
Expand Down

0 comments on commit 0097591

Please sign in to comment.