From 4100e7db9fc88cbc9a6e9bbe508097f971761269 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Wed, 31 Jan 2024 17:52:44 +0000 Subject: change Post updated_at to an option --- src/posts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/posts.rs') diff --git a/src/posts.rs b/src/posts.rs index 415f743..a8e9f90 100644 --- a/src/posts.rs +++ b/src/posts.rs @@ -13,7 +13,7 @@ pub trait Post { fn id(&self) -> &str; fn subject(&self) -> Option<&str>; fn published_at(&self) -> &DateTime; - fn updated_at(&self) -> &DateTime; + fn updated_at(&self) -> Option<&DateTime>; fn tags(&self) -> &Vec; fn lang(&self) -> &str; fn post_type(&self) -> PostType; -- cgit