Struct nmstate::DnsClientState
source · #[non_exhaustive]pub struct DnsClientState {
pub server: Option<Vec<String>>,
pub search: Option<Vec<String>>,
pub options: 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())
.
If undefined(set to None
), will preserve current config.
search: Option<Vec<String>>
Search list for host-name lookup.
To remove all existing search, please use Some(Vec::new())
.
If undefined(set to None
), will preserve current config.
options: Option<Vec<String>>
DNS option list.
To remove all existing search, please use Some(Vec::new())
.
If undefined(set to None
), will preserve current config.
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 for DnsClientState
impl PartialEq for DnsClientState
source§impl Serialize for DnsClientState
impl Serialize for DnsClientState
impl Eq for DnsClientState
impl StructuralPartialEq for DnsClientState
Auto Trait Implementations§
impl Freeze for DnsClientState
impl RefUnwindSafe for DnsClientState
impl Send for DnsClientState
impl Sync for DnsClientState
impl Unpin for DnsClientState
impl UnwindSafe for DnsClientState
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.