Radish alpha
r
rad:z2UcCU1LgMshWvXj6hXSDDrwB8q8M
Radicle Job Collaborative Object
Radicle
Git
make JobId (de)serializable
Merged liw opened 10 months ago

This makes it easier to embed in a struct that gets serialized.

Signed-off-by: Lars Wirzenius liw@liw.fi

1 file changed +1 -1 6fef4ae5 4512b109
modified src/lib.rs
@@ -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 {