nubis-sdk 1.1.0

Official Nubis Rust SDK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde_json::Value;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum NubisError {
    #[error("transport error: {0}")]
    Transport(#[from] reqwest::Error),
    #[error("serialization error: {0}")]
    Serialization(#[from] serde_json::Error),
    #[error("http {status}: {message}")]
    Http {
        status: u16,
        message: String,
        body: Value,
    },
}