pub struct Dns {
pub status: u32,
pub tc: bool,
pub ad: bool,
pub cd: bool,
pub question: Vec<DnsQuestion>,
pub answer: Option<Vec<DnsAnswer>>,
pub comment: Option<String>,
}Fields§
§status: u32NOERROR - Standard DNS response code (32 bit integer).
tc: boolThe response will be trucated if Google DNS cannot get complete and un-truncated responses from authoritative name servers or in cases where the DNS response (binary DNS message form) would exceed the 64 KiB limit for TCP DNS messages
ad: boolWhether all response data was validated with DNSSEC
cd: boolWhether the client asked to disable DNSSEC
question: Vec<DnsQuestion>§answer: Option<Vec<DnsAnswer>>§comment: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dns
impl<'de> Deserialize<'de> for Dns
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 Dns
impl RefUnwindSafe for Dns
impl Send for Dns
impl Sync for Dns
impl Unpin for Dns
impl UnsafeUnpin for Dns
impl UnwindSafe for Dns
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