Files
ddns/src/model/dns_record.rs
T
2026-11-21 10:44:38 +01:00

22 lines
411 B
Rust

pub struct DnsRecord {
pub id: String,
pub type_: String,
pub domain: String,
pub subdomain: String,
pub value: String,
pub ttl: i32,
}
impl DnsRecord {
pub fn new(
id: String,
type_: String,
domain: String,
subdomain: String,
value: String,
ttl: i32,
) -> Self {
Self { id, type_, domain, subdomain, value, ttl }
}
}