pub struct DnsRecord {
pub id: Option<String>,
pub record_type: String,
pub name: String,
pub content: String,
pub ttl: Option<i64>,
pub proxied: Option<bool>,
pub comment: Option<String>,
}Expand description
Represents a DNS record in Cloudflare’s system.
This is the primary data structure used throughout the application.
The id field is Option<String> because it’s not present when creating new records.
Fields§
§id: Option<String>The unique identifier for the record (not present when creating new records)
record_type: StringThe DNS record type (A, AAAA, CNAME, MX, TXT, etc.)
name: StringThe DNS record name (e.g., “example.com” or “www.example.com”)
content: StringThe record content (IP address, hostname, etc.)
ttl: Option<i64>Time-to-live in seconds (use 1 for automatic)
proxied: Option<bool>Whether the record is proxied through Cloudflare (orange cloud)
comment: Option<String>Optional comment 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