diff options
Diffstat (limited to 'src/id.rs')
| -rw-r--r-- | src/id.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 { |
