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
use serde::{Deserialize, Serialize};

use crate::models::base::default_empty_string;

// Orignally named: 'Body_admin_token_api_admin_token_post' in the openapi.json
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct BodyAdminTokenApiAdminTokenPost {
    pub grant_type: Option<String>,
    pub username: String,
    pub password: String,
    #[serde(default = "default_empty_string")]
    pub scope: String,
    pub client_id: Option<String>,
    pub client_secret: Option<String>,
}