pub struct DnsRecord {
pub record_id: DnsRecordId,
pub name: String,
pub ttl: u32,
pub data: String,
pub record_type: String,
pub priority: Option<u32>,
pub comment: Option<String>,
}Expand description
Represents a DNS record as returned by the Simply.com DNS API.
Fields map directly to the API response schema. For details, refer to the official API docs. See: https://www.simply.com/en/docs/api/
Fields§
§record_id: DnsRecordIdUnique identifier for the DNS record.
name: StringThe DNS record name (subdomain), e.g. “hello” in “hello.example.com”.
ttl: u32Time to live (TTL) in seconds for the DNS record.
data: StringData field for the DNS record (e.g., IP address for “A” record, target domain for “CNAME”, etc.).
record_type: StringType of DNS record (“A”, “CNAME”, “MX”, etc.).
priority: Option<u32>Priority value for records that require it (e.g., MX, SRV); optional.
comment: Option<String>Optional comment or metadata for the record.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DnsRecord
impl<'de> Deserialize<'de> for DnsRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DnsRecord
impl RefUnwindSafe for DnsRecord
impl Send for DnsRecord
impl Sync for DnsRecord
impl Unpin for DnsRecord
impl UnsafeUnpin for DnsRecord
impl UnwindSafe for DnsRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more