#[non_exhaustive]pub struct ServerNetworkTemplate {
pub name: String,
pub applicable_instance_types: Vec<String>,
pub logical_interfaces: Vec<LogicalInterface>,
/* private fields */
}Expand description
Network template.
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.name: StringOutput only. Template’s unique name. The full resource name follows the
pattern:
projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}
Generally, the {server_network_template} follows the syntax of
“bond<interface_type_index><bond_mode>” or “nic<interface_type_index>”.
applicable_instance_types: Vec<String>Instance types this template is applicable to.
logical_interfaces: Vec<LogicalInterface>Logical interfaces.
Implementations§
Source§impl ServerNetworkTemplate
impl ServerNetworkTemplate
pub fn new() -> Self
Sourcepub fn set_applicable_instance_types<T, V>(self, v: T) -> Self
pub fn set_applicable_instance_types<T, V>(self, v: T) -> Self
Sets the value of applicable_instance_types.
Sourcepub fn set_logical_interfaces<T, V>(self, v: T) -> Self
pub fn set_logical_interfaces<T, V>(self, v: T) -> Self
Sets the value of logical_interfaces.
Trait Implementations§
Source§impl Clone for ServerNetworkTemplate
impl Clone for ServerNetworkTemplate
Source§fn clone(&self) -> ServerNetworkTemplate
fn clone(&self) -> ServerNetworkTemplate
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 ServerNetworkTemplate
impl Debug for ServerNetworkTemplate
Source§impl Default for ServerNetworkTemplate
impl Default for ServerNetworkTemplate
Source§fn default() -> ServerNetworkTemplate
fn default() -> ServerNetworkTemplate
Returns the “default value” for a type. Read more
Source§impl Message for ServerNetworkTemplate
impl Message for ServerNetworkTemplate
Source§impl PartialEq for ServerNetworkTemplate
impl PartialEq for ServerNetworkTemplate
impl StructuralPartialEq for ServerNetworkTemplate
Auto Trait Implementations§
impl Freeze for ServerNetworkTemplate
impl RefUnwindSafe for ServerNetworkTemplate
impl Send for ServerNetworkTemplate
impl Sync for ServerNetworkTemplate
impl Unpin for ServerNetworkTemplate
impl UnwindSafe for ServerNetworkTemplate
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