r6stats/
lib.rs

1#![allow(clippy::uninlined_format_args)]
2
3pub mod client;
4pub mod types;
5
6pub use crate::{
7    client::Client,
8    types::UserData,
9};
10
11/// Library Result Type
12pub type R6Result<T> = Result<T, Error>;
13
14/// Library Error Type
15#[derive(Debug, thiserror::Error)]
16pub enum Error {
17    /// Reqwest HTTP Error
18    #[error(transparent)]
19    Reqwest(#[from] reqwest::Error),
20
21    /// Json Error
22    #[error(transparent)]
23    Json(#[from] serde_json::Error),
24}