oxtapus 0.2.3

اُختاپوس برایِ پوششِ بخشی از داده‌هایِ موردِ نیاز در مدل-سازی‌هایِ مالی-اقتصادی توسعه داده شده است.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error("HTTP request failed: {0}")]
    Reqwest(#[from] reqwest::Error),

    #[error("JSON parsing error: {0}")]
    Serde(#[from] serde_json::Error),

    #[error("TSETMC API error: {0}")]
    Api(String),

    #[error("Data parsing error: {0}")]
    Parse(String),
}

pub type Result<T> = std::result::Result<T, Error>;