diff --git a/src/object/mod.rs b/src/object/mod.rs index 26e8aeb..18072a2 100644 --- a/src/object/mod.rs +++ b/src/object/mod.rs @@ -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 {