diff options
Diffstat (limited to 'src/id.rs')
| -rw-r--r-- | src/id.rs | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -27,7 +27,18 @@ pub const ID_SIZE: usize = 15; // // By convention, the prefix should be UPPERCASE - note that the alphabet for this // is entirely lowercase. -#[derive(Clone, Debug, Hash, Eq, PartialEq, sqlx::Type, serde::Deserialize, serde::Serialize)] +#[derive( + Clone, + Debug, + Hash, + Eq, + Ord, + PartialEq, + PartialOrd, + sqlx::Type, + serde::Deserialize, + serde::Serialize, +)] #[sqlx(transparent)] #[serde(transparent)] pub struct Id(String); |
