From 4512b1091fdb41ea508d3a9dc732e18aa5d263ec Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 11 Jun 2025 14:03:39 +0300 Subject: [PATCH] fix: make JobId (de)serializable This makes it easier to embed in a struct that gets serialized. Signed-off-by: Lars Wirzenius --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c9380f5..a0583c3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -82,7 +82,7 @@ pub static TYPENAME: Lazy = /// /// Identifiers can be used to retrieve a [`Job`] or [`JobMut`] through /// [`Jobs::get`] and [`Jobs::get_mut`], respectively. -#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)] pub struct JobId(ObjectId); impl JobId {