aboutsummaryrefslogtreecommitdiffstats
path: root/src/posts
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2024-01-31 17:52:44 +0000
committerLibravatar cel 🌸 <cel@blos.sm>2024-01-31 17:52:44 +0000
commit4100e7db9fc88cbc9a6e9bbe508097f971761269 (patch)
tree1a7de64fa25f02812cab5404dd6f45e7e4de62f8 /src/posts
parente2bf8728c086d4a42ff1ec2b8f916dc07377f399 (diff)
downloadblossom-4100e7db9fc88cbc9a6e9bbe508097f971761269.tar.gz
blossom-4100e7db9fc88cbc9a6e9bbe508097f971761269.tar.bz2
blossom-4100e7db9fc88cbc9a6e9bbe508097f971761269.zip
change Post updated_at to an option
Diffstat (limited to '')
-rw-r--r--src/posts.rs2
1 files changed, 1 insertions, 1 deletions
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<Utc>;
- fn updated_at(&self) -> &DateTime<Utc>;
+ fn updated_at(&self) -> Option<&DateTime<Utc>>;
fn tags(&self) -> &Vec<String>;
fn lang(&self) -> &str;
fn post_type(&self) -> PostType;