#[non_exhaustive]pub struct GuestOsFeature {
pub type: Option<Type>,
/* private fields */
}Available on crate features
disks or image-family-views or images or instance-templates or instances or machine-images or region-disks or region-instance-templates or region-instances or snapshots only.Expand description
Guest OS features.
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.type: Option<Type>The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values:
- VIRTIO_SCSI_MULTIQUEUE
- WINDOWS
- MULTI_IP_SUBNET
- UEFI_COMPATIBLE
- GVNIC
- SEV_CAPABLE
- SUSPEND_RESUME_COMPATIBLE
- SEV_LIVE_MIGRATABLE_V2
- SEV_SNP_CAPABLE
- TDX_CAPABLE
- IDPF
- SNP_SVSM_CAPABLE
For more information, see Enabling guest operating system features.
Implementations§
Source§impl GuestOsFeature
impl GuestOsFeature
pub fn new() -> Self
Sourcepub fn set_or_clear_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_type<T>(self, v: Option<T>) -> Self
Sets or clears the value of r#type.
§Example
ⓘ
use google_cloud_compute_v1::model::guest_os_feature::Type;
let x0 = GuestOsFeature::new().set_or_clear_type(Some(Type::FeatureTypeUnspecified));
let x1 = GuestOsFeature::new().set_or_clear_type(Some(Type::Gvnic));
let x2 = GuestOsFeature::new().set_or_clear_type(Some(Type::Idpf));
let x_none = GuestOsFeature::new().set_or_clear_type(None::<Type>);Trait Implementations§
Source§impl Clone for GuestOsFeature
impl Clone for GuestOsFeature
Source§fn clone(&self) -> GuestOsFeature
fn clone(&self) -> GuestOsFeature
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 GuestOsFeature
impl Debug for GuestOsFeature
Source§impl Default for GuestOsFeature
impl Default for GuestOsFeature
Source§fn default() -> GuestOsFeature
fn default() -> GuestOsFeature
Returns the “default value” for a type. Read more
Source§impl Message for GuestOsFeature
impl Message for GuestOsFeature
Source§impl PartialEq for GuestOsFeature
impl PartialEq for GuestOsFeature
impl StructuralPartialEq for GuestOsFeature
Auto Trait Implementations§
impl Freeze for GuestOsFeature
impl RefUnwindSafe for GuestOsFeature
impl Send for GuestOsFeature
impl Sync for GuestOsFeature
impl Unpin for GuestOsFeature
impl UnwindSafe for GuestOsFeature
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