diff --git a/rust/noosphere-gateway/src/jobs/job.rs b/rust/noosphere-gateway/src/jobs/job.rs index a084e282..05804b59 100644 --- a/rust/noosphere-gateway/src/jobs/job.rs +++ b/rust/noosphere-gateway/src/jobs/job.rs @@ -1,9 +1,11 @@ +use serde::{Deserialize, Serialize}; use noosphere_core::data::{Did, Link, LinkRecord, MemoIpld}; /// Various tasks that are performed by a job runner. /// All jobs are scoped by an `identity` [Did], the /// counterpart client sphere. -#[derive(Debug, Clone)] +#[derive(Serialize, Deserialize, Debug, Clone)] +#[serde(tag = "type")] pub enum GatewayJob { /// Compact history for the sphere. CompactHistory {