From beeb40acdc07d5652bf2128ecb8f71a1116993ae Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 4 Sep 2024 23:19:51 -0400 Subject: Support leaving a channel --- src/id.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/id.rs') diff --git a/src/id.rs b/src/id.rs index 6dbdc30..4e12f2a 100644 --- a/src/id.rs +++ b/src/id.rs @@ -27,8 +27,9 @@ pub const ID_SIZE: usize = 15; // // By convention, the prefix should be UPPERCASE - note that the alphabet for this // is entirely lowercase. -#[derive(Debug, Hash, PartialEq, Eq, sqlx::Type)] +#[derive(Debug, Hash, PartialEq, Eq, sqlx::Type, serde::Deserialize)] #[sqlx(transparent)] +#[serde(transparent)] pub struct Id(String); impl fmt::Display for Id { -- cgit v1.2.3