shindo_coding_utils 0.3.4

A utils crates which will be used in various micro-services
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

#[derive(Debug)]
pub struct CustomError {
    pub message: String,
}

#[derive(Debug, Error)]
pub enum ConsumerError {
    #[error("Processing failed for ticker {ticker_code}")]
    TickerFailed { ticker_code: String },
    #[error("Failed to get next ticker from data stream")]
    StreamError(#[from] anyhow::Error),
}