use serde::{Deserialize, Serialize};
use crate::RecordType;
#[derive(Serialize, Debug, Clone)]
pub(crate) struct CreateUpdate<T> {
#[serde(rename = "type")]
pub rtype: RecordType,
pub name: String,
pub ttl: u32,
pub data: T,
}
#[derive(Deserialize, Debug, Clone)]
pub(crate) struct Records<T> {
pub domain_records: Vec<Record<T>>,
}
#[allow(unused)]
#[derive(Deserialize, Debug, Clone)]
pub(crate) struct Record<T> {
pub id: u64,
#[serde(rename = "type")]
pub rtype: RecordType,
pub name: String,
pub ttl: u32,
pub data: T,
}