From b4359ec20264bda13e4aeba2bf4fddd952859d63 Mon Sep 17 00:00:00 2001 From: 4o1x5 <4o1x5@4o1x5.dev> Date: Fri, 15 Nov 2024 23:31:27 +0100 Subject: [PATCH] forgot readme.md: errored result --- Cargo.toml | 2 +- README.md | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fb4c6e7..a75de1f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bunbun-worker" -version = "0.2.0" +version = "0.2.1" description = "An rpc/non-rpc rabbitmq worker library" edition = "2021" license = "AGPL-3.0" diff --git a/README.md b/README.md index 46c9c89..08b8d14 100644 --- a/README.md +++ b/README.md @@ -60,10 +60,14 @@ pub struct EmailJob { send_to: String, contents: String, } -#[derive(Deserialize, Serialize, Clone, Debug, PartialEq)] +#[derive(Deserialize, Serialize, Clone, Debug)] pub struct EmailJobResult { contents: String, } +#[derive(Deserialize, Serialize, Clone, Debug)] +pub enum EmailJobResultError { + Errored, +} impl RPCTask for EmailJob { type ErroredResult = EmailJobResultError; type Result = EmailJobResult; @@ -113,6 +117,10 @@ pub struct EmailJob { pub struct EmailJobResult { contents: String, } +#[derive(Deserialize, Serialize, Clone, Debug)] +pub enum EmailJobResultError { + Errored, +} // Implement the client side trait, so the caller knows what the return types are impl RPCClientTask for EmailJob {