pub struct Dns {
pub nameservers: Vec<IpAddr>,
pub domain: Option<String>,
pub search: Vec<String>,
pub options: Vec<String>,
}Expand description
DNS configuration or settings.
Some plugins may make use of this. While the schema is set, it is not a part of the spec formally, and plugins are only required to respect their intended semantics if they care about these.
All fields are optional (Vecs will default to empty).
Fields§
§nameservers: Vec<IpAddr>List of DNS nameservers this network is aware of.
The list is priority-ordered.
domain: Option<String>The local domain used for short hostname lookups.
search: Vec<String>List of search domains for short hostname lookups.
This effectively supersedes the domain field and will be preferred
over it by most resolvers.
The list is priority-ordered.
options: Vec<String>List of options to be passed to the resolver.
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more