use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Serialize, Clone, Debug)]
pub struct Auth {
pub secretapikey: String,
pub apikey: String,
}
#[derive(Deserialize, Debug, Clone)]
pub struct StatusResponse {
pub status: String,
#[serde(default)]
pub message: Option<String>,
}
#[derive(Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct PingResponse {
pub status: String,
#[serde(rename = "yourIp")]
pub your_ip: String,
}
#[derive(Deserialize, Debug, Clone)]
pub struct TldPricing {
pub registration: String,
pub renewal: String,
pub transfer: String,
}
#[derive(Deserialize, Debug, Clone)]
pub struct PricingResponse {
pub status: String,
pub pricing: HashMap<String, TldPricing>,
}