Struct netplan_types::NetworkConfig
source · [−]pub struct NetworkConfig {
pub version: u8,
pub renderer: Option<Renderer>,
pub ethernets: Option<HashMap<String, EthernetConfig>>,
pub wifis: Option<HashMap<String, WifiConfig>>,
pub bonds: Option<HashMap<String, BondConfig>>,
pub bridges: Option<HashMap<String, BridgeConfig>>,
pub vlans: Option<HashMap<String, VlanConfig>>,
pub tunnels: Option<HashMap<String, TunnelConfig>>,
}Fields
version: u8renderer: Option<Renderer>ethernets: Option<HashMap<String, EthernetConfig>>wifis: Option<HashMap<String, WifiConfig>>bonds: Option<HashMap<String, BondConfig>>bridges: Option<HashMap<String, BridgeConfig>>vlans: Option<HashMap<String, VlanConfig>>tunnels: Option<HashMap<String, TunnelConfig>>Trait Implementations
sourceimpl Clone for NetworkConfig
impl Clone for NetworkConfig
sourcefn clone(&self) -> NetworkConfig
fn clone(&self) -> NetworkConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for NetworkConfig
impl Debug for NetworkConfig
sourceimpl Default for NetworkConfig
impl Default for NetworkConfig
sourcefn default() -> NetworkConfig
fn default() -> NetworkConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for NetworkConfig
impl<'de> Deserialize<'de> for NetworkConfig
sourcefn 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
sourceimpl PartialEq<NetworkConfig> for NetworkConfig
impl PartialEq<NetworkConfig> for NetworkConfig
sourcefn eq(&self, other: &NetworkConfig) -> bool
fn eq(&self, other: &NetworkConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &NetworkConfig) -> bool
fn ne(&self, other: &NetworkConfig) -> bool
This method tests for !=.
sourceimpl Serialize for NetworkConfig
impl Serialize for NetworkConfig
impl Eq for NetworkConfig
impl StructuralEq for NetworkConfig
impl StructuralPartialEq for NetworkConfig
Auto Trait Implementations
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnwindSafe for NetworkConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more