pub struct DnsNameservers {
pub dns: Option<Vec<String>>,
pub unknown: Unknown,
}Expand description
The tailnet’s global nameservers.
Sent to set them and returned when reading them; the same shape both ways, which is why one struct serves three of the description’s places.
Fields§
§dns: Option<Vec<String>>Addresses, not URLs. Replacing this with an empty list removes every global nameserver, which also turns MagicDNS off.
unknown: UnknownEverything the description did not mention, kept so that a control plane ahead of this build still answers usefully.
Implementations§
Trait Implementations§
Source§impl Clone for DnsNameservers
impl Clone for DnsNameservers
Source§impl Debug for DnsNameservers
impl Debug for DnsNameservers
Source§impl<'de> Deserialize<'de> for DnsNameservers
impl<'de> Deserialize<'de> for DnsNameservers
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
Source§impl PartialEq for DnsNameservers
impl PartialEq for DnsNameservers
Source§impl Serialize for DnsNameservers
impl Serialize for DnsNameservers
impl StructuralPartialEq for DnsNameservers
Auto Trait Implementations§
impl Freeze for DnsNameservers
impl RefUnwindSafe for DnsNameservers
impl Send for DnsNameservers
impl Sync for DnsNameservers
impl Unpin for DnsNameservers
impl UnsafeUnpin for DnsNameservers
impl UnwindSafe for DnsNameservers
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