cielo-rs-sdk 0.1.0

Rust library for interacting with the Cielo API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! This module defines custom error types for the Cielo API.

/// Custom error type for the Cielo API
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// Error originating from the reqwest library
    #[error("Reqwest error: {0}")]
    Reqwest(#[from] reqwest::Error),

    /// Error originating from the reqwest middleware
    #[error("Reqwest middleware error: {0}")]
    ReqwestMiddleware(#[from] reqwest_middleware::Error),

    /// Error indicating that the response status was not 200 OK
    #[error("Response status not 200: {0}")]
    StatusNot200(String),
}