diff --git a/apb/src/types/object/mod.rs b/apb/src/types/object/mod.rs index a6adbe44..9f829c13 100644 --- a/apb/src/types/object/mod.rs +++ b/apb/src/types/object/mod.rs @@ -55,13 +55,13 @@ pub trait Object : Base { fn location(&self) -> Node { Node::Empty } fn preview(&self) -> Node { Node::Empty } // also in link fn published(&self) -> Option> { None } + fn updated(&self) -> Option> { None } fn replies(&self) -> Node { Node::Empty } fn likes(&self) -> Node { Node::Empty } fn shares(&self) -> Node { Node::Empty } fn start_time(&self) -> Option> { None } fn summary(&self) -> Option<&str> { None } fn tag(&self) -> Node { Node::Empty } - fn updated(&self) -> Option> { None } fn url(&self) -> Node { Node::Empty } fn to(&self) -> Node { Node::Empty } fn bto(&self) -> Node { Node::Empty } @@ -104,13 +104,13 @@ pub trait ObjectMut : BaseMut { fn set_location(self, val: Node) -> Self; fn set_preview(self, val: Node) -> Self; // also in link fn set_published(self, val: Option>) -> Self; + fn set_updated(self, val: Option>) -> Self; fn set_replies(self, val: Node) -> Self; fn set_likes(self, val: Node) -> Self; fn set_shares(self, val: Node) -> Self; fn set_start_time(self, val: Option>) -> Self; fn set_summary(self, val: Option<&str>) -> Self; fn set_tag(self, val: Node) -> Self; - fn set_updated(self, val: Option>) -> Self; fn set_url(self, val: Node) -> Self; fn set_to(self, val: Node) -> Self; fn set_bto(self, val: Node) -> Self; @@ -149,13 +149,13 @@ impl Object for serde_json::Value { crate::getter! { location -> node ::Object } crate::getter! { preview -> node ::Object } crate::getter! { published -> chrono::DateTime } + crate::getter! { updated -> chrono::DateTime } crate::getter! { replies -> node Self::Collection } crate::getter! { likes -> node Self::Collection } crate::getter! { shares -> node Self::Collection } crate::getter! { start_time::startTime -> chrono::DateTime } crate::getter! { summary -> &str } crate::getter! { tag -> node ::Object } - crate::getter! { updated -> chrono::DateTime } crate::getter! { to -> node Self::Link } crate::getter! { bto -> node Self::Link } crate::getter! { cc -> node Self::Link } @@ -232,13 +232,13 @@ impl ObjectMut for serde_json::Value { crate::setter! { location -> node ::Object } crate::setter! { preview -> node ::Object } crate::setter! { published -> chrono::DateTime } + crate::setter! { updated -> chrono::DateTime } crate::setter! { replies -> node Self::Collection } crate::setter! { likes -> node Self::Collection } crate::setter! { shares -> node Self::Collection } crate::setter! { start_time::startTime -> chrono::DateTime } crate::setter! { summary -> &str } crate::setter! { tag -> node ::Object } - crate::setter! { updated -> chrono::DateTime } crate::setter! { to -> node Self::Link } crate::setter! { bto -> node Self::Link} crate::setter! { cc -> node Self::Link }