pub struct InterfaceOverridesPatch { /* private fields */ }Expand description
A sparse, presence-aware patch for InterfaceOverrides.
Implementations§
Source§impl InterfaceOverridesPatch
impl InterfaceOverridesPatch
Sourcepub fn ipv4_address(self, value: Ipv4Addr) -> Self
pub fn ipv4_address(self, value: Ipv4Addr) -> Self
Set the ipv4_address field in this patch.
Sourcepub fn ipv4_pool(self, value: Ipv4Network) -> Self
pub fn ipv4_pool(self, value: Ipv4Network) -> Self
Set the ipv4_pool field in this patch.
Sourcepub fn ipv6_address(self, value: Ipv6Addr) -> Self
pub fn ipv6_address(self, value: Ipv6Addr) -> Self
Set the ipv6_address field in this patch.
Sourcepub fn ipv6_pool(self, value: Ipv6Network) -> Self
pub fn ipv6_pool(self, value: Ipv6Network) -> Self
Set the ipv6_pool field in this patch.
Sourcepub fn clear_mac(self) -> Self
pub fn clear_mac(self) -> Self
Remove mac from this patch so applying it leaves the target unchanged.
Sourcepub fn clear_mtu(self) -> Self
pub fn clear_mtu(self) -> Self
Remove mtu from this patch so applying it leaves the target unchanged.
Sourcepub fn clear_ipv4_address(self) -> Self
pub fn clear_ipv4_address(self) -> Self
Remove ipv4_address from this patch so applying it leaves the target unchanged.
Sourcepub fn clear_ipv4_pool(self) -> Self
pub fn clear_ipv4_pool(self) -> Self
Remove ipv4_pool from this patch so applying it leaves the target unchanged.
Sourcepub fn clear_ipv6_address(self) -> Self
pub fn clear_ipv6_address(self) -> Self
Remove ipv6_address from this patch so applying it leaves the target unchanged.
Sourcepub fn clear_ipv6_pool(self) -> Self
pub fn clear_ipv6_pool(self) -> Self
Remove ipv6_pool from this patch so applying it leaves the target unchanged.
Sourcepub fn overlay(self, higher: Self) -> Self
pub fn overlay(self, higher: Self) -> Self
Overlay a higher-precedence patch using each field’s declared strategy.
Sourcepub fn apply_to(self, target: &mut InterfaceOverrides)
pub fn apply_to(self, target: &mut InterfaceOverrides)
Apply every present field to an existing value.
Sourcepub fn from_present_fields(value: InterfaceOverrides) -> Self
pub fn from_present_fields(value: InterfaceOverrides) -> Self
Convert non-null fields into a changeset, treating Option::None as absent.
Trait Implementations§
Source§impl Clone for InterfaceOverridesPatch
impl Clone for InterfaceOverridesPatch
Source§fn clone(&self) -> InterfaceOverridesPatch
fn clone(&self) -> InterfaceOverridesPatch
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more