20 lines
521 B
Rust
20 lines
521 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Clone, Deserialize, Serialize, Default)]
|
|
pub struct ClientConfig {
|
|
pub proxy_url: Option<String>,
|
|
pub status_url: Option<String>,
|
|
pub cert_hash: Option<Vec<u8>>,
|
|
pub any_server: bool,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Deserialize, Serialize, Default)]
|
|
pub struct ServerStatus {
|
|
#[serde(default)]
|
|
pub success: bool,
|
|
pub version: Option<(u32, u32, u32)>,
|
|
pub users: Option<u32>,
|
|
pub max_users: Option<u32>,
|
|
pub bandwidth: Option<u32>,
|
|
}
|