feat: with complete example and generated code
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -12,3 +12,4 @@ thiserror.workspace = true
|
||||
async-trait.workspace = true
|
||||
uuid.workspace = true
|
||||
futures.workspace = true
|
||||
prost.workspace = true
|
||||
|
@@ -8,8 +8,10 @@ pub enum SerializeError {
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum DeserializeError {
|
||||
#[error("failed to serialize {0}")]
|
||||
#[error("failed to deserialize {0}")]
|
||||
FailedToDeserialize(anyhow::Error),
|
||||
#[error("failed to deserialize {0}")]
|
||||
ProtoErr(prost::DecodeError),
|
||||
}
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
use std::{fmt::Display};
|
||||
use std::fmt::Display;
|
||||
|
||||
use async_trait::async_trait;
|
||||
use errors::{DeserializeError, PersistenceError, SerializeError};
|
||||
|
Reference in New Issue
Block a user