#[non_exhaustive]pub struct OSImage {
pub name: String,
pub code: String,
pub description: String,
pub applicable_instance_types: Vec<String>,
pub supported_network_templates: Vec<String>,
/* private fields */
}Expand description
Operation System image.
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. OS Image’s unique name.
code: StringOS Image code.
description: StringOS Image description.
applicable_instance_types: Vec<String>Instance types this image is applicable to. Available types
supported_network_templates: Vec<String>Network templates that can be used with this OS Image.
Implementations§
Source§impl OSImage
impl OSImage
pub fn new() -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
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_supported_network_templates<T, V>(self, v: T) -> Self
pub fn set_supported_network_templates<T, V>(self, v: T) -> Self
Sets the value of supported_network_templates.
Trait Implementations§
impl StructuralPartialEq for OSImage
Auto Trait Implementations§
impl Freeze for OSImage
impl RefUnwindSafe for OSImage
impl Send for OSImage
impl Sync for OSImage
impl Unpin for OSImage
impl UnwindSafe for OSImage
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