#![allow(unused)]
use serde::{Deserialize, Serialize};
use crate::RecordType;
#[derive(Debug, Deserialize)]
pub(crate) struct Response<T> {
pub success: bool,
pub result: T,
}
#[derive(Deserialize, Debug)]
pub(crate) struct ZoneInfo {
pub id: String,
pub name: String,
}
#[derive(Deserialize, Debug, Clone)]
pub struct GetRecord<T>
{
pub id: String,
pub name: String,
pub ttl: u32,
#[serde(rename = "type")]
pub rtype: RecordType,
pub content: T,
}
pub type GetRecords<T> = Vec<GetRecord<T>>;
#[derive(Serialize, Debug, Clone)]
pub struct CreateRecord<T> {
pub name: String,
pub ttl: u32,
#[serde(rename = "type")]
pub rtype: RecordType,
pub content: T,
}