mirror of
https://seed.radicle.dev/rad:z2UcCU1LgMshWvXj6hXSDDrwB8q8M.git
synced 2026-11-21 02:40:44 +08:00
fix: make JobId (de)serializable
This makes it easier to embed in a struct that gets serialized. Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
committed by
Fintan Halpenny
parent
6fef4ae530
commit
4512b1091f
+1
-1
@@ -82,7 +82,7 @@ pub static TYPENAME: Lazy<TypeName> =
|
||||
///
|
||||
/// 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 {
|
||||
|
||||
Reference in New Issue
Block a user