forgot readme.md: errored result
This commit is contained in:
parent
6a8080a6b1
commit
b4359ec202
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "bunbun-worker"
|
name = "bunbun-worker"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
description = "An rpc/non-rpc rabbitmq worker library"
|
description = "An rpc/non-rpc rabbitmq worker library"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "AGPL-3.0"
|
license = "AGPL-3.0"
|
||||||
|
|
10
README.md
10
README.md
|
@ -60,10 +60,14 @@ pub struct EmailJob {
|
||||||
send_to: String,
|
send_to: String,
|
||||||
contents: String,
|
contents: String,
|
||||||
}
|
}
|
||||||
#[derive(Deserialize, Serialize, Clone, Debug, PartialEq)]
|
#[derive(Deserialize, Serialize, Clone, Debug)]
|
||||||
pub struct EmailJobResult {
|
pub struct EmailJobResult {
|
||||||
contents: String,
|
contents: String,
|
||||||
}
|
}
|
||||||
|
#[derive(Deserialize, Serialize, Clone, Debug)]
|
||||||
|
pub enum EmailJobResultError {
|
||||||
|
Errored,
|
||||||
|
}
|
||||||
impl RPCTask for EmailJob {
|
impl RPCTask for EmailJob {
|
||||||
type ErroredResult = EmailJobResultError;
|
type ErroredResult = EmailJobResultError;
|
||||||
type Result = EmailJobResult;
|
type Result = EmailJobResult;
|
||||||
|
@ -113,6 +117,10 @@ pub struct EmailJob {
|
||||||
pub struct EmailJobResult {
|
pub struct EmailJobResult {
|
||||||
contents: String,
|
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
|
// Implement the client side trait, so the caller knows what the return types are
|
||||||
impl RPCClientTask for EmailJob {
|
impl RPCClientTask for EmailJob {
|
||||||
|
|
Loading…
Reference in a new issue