Struct netplan_types::NameserverConfig
source · pub struct NameserverConfig {
pub addresses: Option<Vec<String>>,
pub search: Option<Vec<String>>,
}Expand description
Set DNS servers and search domains, for manual address configuration.
Fields§
§addresses: Option<Vec<String>>A list of IPv4 or IPv6 addresses
search: Option<Vec<String>>A list of search domains.
Trait Implementations§
source§impl Clone for NameserverConfig
impl Clone for NameserverConfig
source§fn clone(&self) -> NameserverConfig
fn clone(&self) -> NameserverConfig
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 NameserverConfig
impl Debug for NameserverConfig
source§impl Default for NameserverConfig
impl Default for NameserverConfig
source§fn default() -> NameserverConfig
fn default() -> NameserverConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NameserverConfig
impl<'de> Deserialize<'de> for NameserverConfig
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<NameserverConfig> for NameserverConfig
impl PartialEq<NameserverConfig> for NameserverConfig
source§fn eq(&self, other: &NameserverConfig) -> bool
fn eq(&self, other: &NameserverConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for NameserverConfig
impl Serialize for NameserverConfig
impl Eq for NameserverConfig
impl StructuralEq for NameserverConfig
impl StructuralPartialEq for NameserverConfig
Auto Trait Implementations§
impl RefUnwindSafe for NameserverConfig
impl Send for NameserverConfig
impl Sync for NameserverConfig
impl Unpin for NameserverConfig
impl UnwindSafe for NameserverConfig
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