#[non_exhaustive]pub struct LogicalInterface {
pub logical_network_interfaces: Vec<LogicalNetworkInterface>,
pub name: String,
pub interface_index: i32,
/* private fields */
}Expand description
Each logical interface represents a logical abstraction of the underlying physical interface (for eg. bond, nic) of the instance. Each logical interface can effectively map to multiple network-IP pairs and still be mapped to one underlying physical interface.
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.logical_network_interfaces: Vec<LogicalNetworkInterface>List of logical network interfaces within a logical interface.
name: StringInterface name. This is of syntax <bond><bond_mode> or <nic> and forms part of the network template name.
interface_index: i32👎Deprecated
The index of the logical interface mapping to the index of the hardware bond or nic on the chosen network template. This field is deprecated.
Implementations§
Source§impl LogicalInterface
impl LogicalInterface
pub fn new() -> Self
Sourcepub fn set_logical_network_interfaces<T, V>(self, v: T) -> Self
pub fn set_logical_network_interfaces<T, V>(self, v: T) -> Self
Sets the value of logical_network_interfaces.
§Example
ⓘ
use google_cloud_baremetalsolution_v2::model::logical_interface::LogicalNetworkInterface;
let x = LogicalInterface::new()
.set_logical_network_interfaces([
LogicalNetworkInterface::default()/* use setters */,
LogicalNetworkInterface::default()/* use (different) setters */,
]);Sourcepub fn set_interface_index<T: Into<i32>>(self, v: T) -> Self
👎Deprecated
pub fn set_interface_index<T: Into<i32>>(self, v: T) -> Self
Sets the value of interface_index.
§Example
ⓘ
let x = LogicalInterface::new().set_interface_index(42);Trait Implementations§
Source§impl Clone for LogicalInterface
impl Clone for LogicalInterface
Source§fn clone(&self) -> LogicalInterface
fn clone(&self) -> LogicalInterface
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 LogicalInterface
impl Debug for LogicalInterface
Source§impl Default for LogicalInterface
impl Default for LogicalInterface
Source§fn default() -> LogicalInterface
fn default() -> LogicalInterface
Returns the “default value” for a type. Read more
Source§impl Message for LogicalInterface
impl Message for LogicalInterface
Source§impl PartialEq for LogicalInterface
impl PartialEq for LogicalInterface
impl StructuralPartialEq for LogicalInterface
Auto Trait Implementations§
impl Freeze for LogicalInterface
impl RefUnwindSafe for LogicalInterface
impl Send for LogicalInterface
impl Sync for LogicalInterface
impl Unpin for LogicalInterface
impl UnwindSafe for LogicalInterface
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