Skip to content
This repository was archived by the owner on Sep 21, 2024. It is now read-only.

Commit 879c412

Browse files
committed
chore: Enable de/serialization in GatewayJob
1 parent 1258a74 commit 879c412

File tree

1 file changed

+3
-1
lines changed
  • rust/noosphere-gateway/src/jobs

1 file changed

+3
-1
lines changed

rust/noosphere-gateway/src/jobs/job.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
use noosphere_core::data::{Did, Link, LinkRecord, MemoIpld};
2+
use serde::{Deserialize, Serialize};
23

34
/// Various tasks that are performed by a job runner.
45
/// All jobs are scoped by an `identity` [Did], the
56
/// counterpart client sphere.
6-
#[derive(Debug, Clone)]
7+
#[derive(Serialize, Deserialize, Debug, Clone)]
8+
#[serde(tag = "type")]
79
pub enum GatewayJob {
810
/// Compact history for the sphere.
911
CompactHistory {

0 commit comments

Comments
 (0)