#[non_exhaustive]pub struct VmCreationConfig {
pub vm_machine_type: String,
pub vm_zone: String,
pub subnet: String,
/* private fields */
}Expand description
VM creation configuration message
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.vm_machine_type: StringRequired. VM instance machine type to create.
vm_zone: StringThe Google Cloud Platform zone to create the VM in.
subnet: StringThe subnet name the vm needs to be created in.
Implementations§
Source§impl VmCreationConfig
impl VmCreationConfig
pub fn new() -> Self
Sourcepub fn set_vm_machine_type<T: Into<String>>(self, v: T) -> Self
pub fn set_vm_machine_type<T: Into<String>>(self, v: T) -> Self
Sets the value of vm_machine_type.
Sourcepub fn set_vm_zone<T: Into<String>>(self, v: T) -> Self
pub fn set_vm_zone<T: Into<String>>(self, v: T) -> Self
Sets the value of vm_zone.
Sourcepub fn set_subnet<T: Into<String>>(self, v: T) -> Self
pub fn set_subnet<T: Into<String>>(self, v: T) -> Self
Sets the value of subnet.
Trait Implementations§
Source§impl Clone for VmCreationConfig
impl Clone for VmCreationConfig
Source§fn clone(&self) -> VmCreationConfig
fn clone(&self) -> VmCreationConfig
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 VmCreationConfig
impl Debug for VmCreationConfig
Source§impl Default for VmCreationConfig
impl Default for VmCreationConfig
Source§fn default() -> VmCreationConfig
fn default() -> VmCreationConfig
Returns the “default value” for a type. Read more
Source§impl Message for VmCreationConfig
impl Message for VmCreationConfig
Source§impl PartialEq for VmCreationConfig
impl PartialEq for VmCreationConfig
impl StructuralPartialEq for VmCreationConfig
Auto Trait Implementations§
impl Freeze for VmCreationConfig
impl RefUnwindSafe for VmCreationConfig
impl Send for VmCreationConfig
impl Sync for VmCreationConfig
impl Unpin for VmCreationConfig
impl UnwindSafe for VmCreationConfig
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