Struct nmstate::DnsClientState
source · #[non_exhaustive]pub struct DnsClientState {
pub server: Option<Vec<String>>,
pub search: Option<Vec<String>>,
/* private fields */
}
Expand description
DNS Client state
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.server: Option<Vec<String>>
Name server IP address list.
To remove all existing servers, please use Some(Vec::new())
.
search: Option<Vec<String>>
Search list for host-name lookup.
To remove all existing search, please use Some(Vec::new())
.
Implementations§
Trait Implementations§
source§impl Clone for DnsClientState
impl Clone for DnsClientState
source§fn clone(&self) -> DnsClientState
fn clone(&self) -> DnsClientState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DnsClientState
impl Debug for DnsClientState
source§impl Default for DnsClientState
impl Default for DnsClientState
source§fn default() -> DnsClientState
fn default() -> DnsClientState
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DnsClientState
impl<'de> Deserialize<'de> for DnsClientState
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<DnsClientState> for DnsClientState
impl PartialEq<DnsClientState> for DnsClientState
source§fn eq(&self, other: &DnsClientState) -> bool
fn eq(&self, other: &DnsClientState) -> bool
source§impl Serialize for DnsClientState
impl Serialize for DnsClientState
impl Eq for DnsClientState
impl StructuralEq for DnsClientState
impl StructuralPartialEq for DnsClientState
Auto Trait Implementations§
impl RefUnwindSafe for DnsClientState
impl Send for DnsClientState
impl Sync for DnsClientState
impl Unpin for DnsClientState
impl UnwindSafe for DnsClientState
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.