orthogonal design
This commit is contained in:
12 files changed
+266
-161
No files matched your search
@@ -0,0 +1,21 @@
|
||||
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 }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user