marzban_api 0.2.12

A simple async client which abstracts/simplifies the interactions with the Marzban panel API (https://github.com/Gozargah/Marzban).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! # Error module
//!
//! This module contains the error types for the Marzban API client.

use thiserror::Error;

#[derive(Debug, Error)]
pub enum ApiError {
    #[error("Network error: {0}")]
    NetworkError(#[from] reqwest::Error),

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

    #[error("Unexpected API response")]
    UnexpectedResponse,
}