#[non_exhaustive]pub struct LogicalNetworkInterface {
pub network: String,
pub ip_address: String,
pub default_gateway: bool,
pub network_type: Type,
pub id: String,
/* private fields */
}Expand description
Each logical network interface is effectively a network and IP pair.
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.network: StringName of the network
ip_address: StringIP address in the network
default_gateway: boolWhether this interface is the default gateway for the instance. Only one interface can be the default gateway for the instance.
network_type: TypeType of network.
id: StringAn identifier for the Network, generated by the backend.
Implementations§
Source§impl LogicalNetworkInterface
impl LogicalNetworkInterface
pub fn new() -> Self
Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
Sets the value of network.
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.
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_network_type<T: Into<Type>>(self, v: T) -> Self
pub fn set_network_type<T: Into<Type>>(self, v: T) -> Self
Sets the value of network_type.
Trait Implementations§
Source§impl Clone for LogicalNetworkInterface
impl Clone for LogicalNetworkInterface
Source§fn clone(&self) -> LogicalNetworkInterface
fn clone(&self) -> LogicalNetworkInterface
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 LogicalNetworkInterface
impl Debug for LogicalNetworkInterface
Source§impl Default for LogicalNetworkInterface
impl Default for LogicalNetworkInterface
Source§fn default() -> LogicalNetworkInterface
fn default() -> LogicalNetworkInterface
Returns the “default value” for a type. Read more
Source§impl Message for LogicalNetworkInterface
impl Message for LogicalNetworkInterface
Source§impl PartialEq for LogicalNetworkInterface
impl PartialEq for LogicalNetworkInterface
impl StructuralPartialEq for LogicalNetworkInterface
Auto Trait Implementations§
impl Freeze for LogicalNetworkInterface
impl RefUnwindSafe for LogicalNetworkInterface
impl Send for LogicalNetworkInterface
impl Sync for LogicalNetworkInterface
impl Unpin for LogicalNetworkInterface
impl UnwindSafe for LogicalNetworkInterface
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