1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#![allow(clippy::uninlined_format_args)]

pub mod client;
pub mod types;

pub use crate::{
    client::Client,
    types::UserData,
};

/// Library Result Type
pub type R6Result<T> = Result<T, Error>;

/// Library Error Type
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// Reqwest HTTP Error
    #[error(transparent)]
    Reqwest(#[from] reqwest::Error),

    /// Json Error
    #[error(transparent)]
    Json(#[from] serde_json::Error),
}