#[non_exhaustive]pub struct NetworkMountPoint {
pub instance: String,
pub logical_interface: String,
pub default_gateway: bool,
pub ip_address: String,
/* private fields */
}Expand description
Mount point for a network.
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.instance: StringInstance to attach network to.
logical_interface: StringLogical interface to detach from.
default_gateway: boolNetwork should be a default gateway.
ip_address: StringIp address of the server.
Implementations§
Source§impl NetworkMountPoint
impl NetworkMountPoint
pub fn new() -> Self
Sourcepub fn set_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sets the value of instance.
Sourcepub fn set_logical_interface<T: Into<String>>(self, v: T) -> Self
pub fn set_logical_interface<T: Into<String>>(self, v: T) -> Self
Sets the value of logical_interface.
Sourcepub fn set_default_gateway<T: Into<bool>>(self, v: T) -> Self
pub fn set_default_gateway<T: Into<bool>>(self, v: T) -> Self
Sets the value of default_gateway.
Sourcepub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
pub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
Sets the value of ip_address.
Trait Implementations§
Source§impl Clone for NetworkMountPoint
impl Clone for NetworkMountPoint
Source§fn clone(&self) -> NetworkMountPoint
fn clone(&self) -> NetworkMountPoint
Returns a duplicate 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 NetworkMountPoint
impl Debug for NetworkMountPoint
Source§impl Default for NetworkMountPoint
impl Default for NetworkMountPoint
Source§fn default() -> NetworkMountPoint
fn default() -> NetworkMountPoint
Returns the “default value” for a type. Read more
Source§impl Message for NetworkMountPoint
impl Message for NetworkMountPoint
Source§impl PartialEq for NetworkMountPoint
impl PartialEq for NetworkMountPoint
impl StructuralPartialEq for NetworkMountPoint
Auto Trait Implementations§
impl Freeze for NetworkMountPoint
impl RefUnwindSafe for NetworkMountPoint
impl Send for NetworkMountPoint
impl Sync for NetworkMountPoint
impl Unpin for NetworkMountPoint
impl UnwindSafe for NetworkMountPoint
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