Struct nmstate::InterfaceIpv6
source · [−]#[non_exhaustive]pub struct InterfaceIpv6 {
pub enabled: bool,
pub dhcp: Option<bool>,
pub dhcp_duid: Option<Dhcpv6Duid>,
pub autoconf: Option<bool>,
pub addr_gen_mode: Option<Ipv6AddrGenMode>,
pub addresses: Option<Vec<InterfaceIpAddr>>,
pub auto_dns: Option<bool>,
pub auto_gateway: Option<bool>,
pub auto_routes: Option<bool>,
pub auto_table_id: Option<u32>,
/* private fields */
}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.enabled: booldhcp: Option<bool>dhcp_duid: Option<Dhcpv6Duid>autoconf: Option<bool>addr_gen_mode: Option<Ipv6AddrGenMode>addresses: Option<Vec<InterfaceIpAddr>>auto_dns: Option<bool>auto_gateway: Option<bool>auto_routes: Option<bool>auto_table_id: Option<u32>Implementations
sourceimpl InterfaceIpv6
impl InterfaceIpv6
Trait Implementations
sourceimpl Clone for InterfaceIpv6
impl Clone for InterfaceIpv6
sourcefn clone(&self) -> InterfaceIpv6
fn clone(&self) -> InterfaceIpv6
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 InterfaceIpv6
impl Debug for InterfaceIpv6
sourceimpl Default for InterfaceIpv6
impl Default for InterfaceIpv6
sourcefn default() -> InterfaceIpv6
fn default() -> InterfaceIpv6
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for InterfaceIpv6
impl<'de> Deserialize<'de> for InterfaceIpv6
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<InterfaceIpv6> for InterfaceIpv6
impl PartialEq<InterfaceIpv6> for InterfaceIpv6
sourcefn eq(&self, other: &InterfaceIpv6) -> bool
fn eq(&self, other: &InterfaceIpv6) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &InterfaceIpv6) -> bool
fn ne(&self, other: &InterfaceIpv6) -> bool
This method tests for !=.
sourceimpl Serialize for InterfaceIpv6
impl Serialize for InterfaceIpv6
impl Eq for InterfaceIpv6
impl StructuralEq for InterfaceIpv6
impl StructuralPartialEq for InterfaceIpv6
Auto Trait Implementations
impl RefUnwindSafe for InterfaceIpv6
impl Send for InterfaceIpv6
impl Sync for InterfaceIpv6
impl Unpin for InterfaceIpv6
impl UnwindSafe for InterfaceIpv6
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> NoneValue for T where
T: Default,
impl<T> NoneValue for T where
T: Default,
type NoneType = T
sourcefn null_value() -> T
fn null_value() -> T
The none-equivalent value.