summaryrefslogtreecommitdiff
path: root/src/channel/snapshot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/channel/snapshot.rs')
-rw-r--r--src/channel/snapshot.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/channel/snapshot.rs b/src/channel/snapshot.rs
index d4d1d27..129c0d6 100644
--- a/src/channel/snapshot.rs
+++ b/src/channel/snapshot.rs
@@ -2,11 +2,14 @@ use super::{
event::{Created, Event},
Id,
};
+use crate::{clock::DateTime, name::Name};
#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize)]
pub struct Channel {
pub id: Id,
- pub name: String,
+ pub name: Name,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub deleted_at: Option<DateTime>,
}
impl Channel {