summaryrefslogtreecommitdiff
path: root/src/repo/channel.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/repo/channel.rs')
-rw-r--r--src/repo/channel.rs13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/repo/channel.rs b/src/repo/channel.rs
index 8f089e8..da63b45 100644
--- a/src/repo/channel.rs
+++ b/src/repo/channel.rs
@@ -79,7 +79,18 @@ impl<'c> Channels<'c> {
}
/// Stable identifier for a [Channel]. Prefixed with `C`.
-#[derive(Clone, Debug, Eq, Hash, PartialEq, sqlx::Type, serde::Deserialize, serde::Serialize)]
+#[derive(
+ Clone,
+ Debug,
+ Eq,
+ Hash,
+ Ord,
+ PartialEq,
+ PartialOrd,
+ sqlx::Type,
+ serde::Deserialize,
+ serde::Serialize,
+)]
#[sqlx(transparent)]
#[serde(transparent)]
pub struct Id(BaseId);