#[non_exhaustive]pub struct ManagedInstanceVersion {
pub instance_template: Option<String>,
pub name: Option<String>,
/* private fields */
}Available on crate features
instance-group-managers or region-instance-group-managers only.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.instance_template: Option<String>Output only. [Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.
name: Option<String>Output only. [Output Only] Name of the version.
Implementations§
Source§impl ManagedInstanceVersion
impl ManagedInstanceVersion
pub fn new() -> Self
Sourcepub fn set_instance_template<T>(self, v: T) -> Self
pub fn set_instance_template<T>(self, v: T) -> Self
Sets the value of instance_template.
§Example
ⓘ
let x = ManagedInstanceVersion::new().set_instance_template("example");Sourcepub fn set_or_clear_instance_template<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance_template<T>(self, v: Option<T>) -> Self
Sets or clears the value of instance_template.
§Example
ⓘ
let x = ManagedInstanceVersion::new().set_or_clear_instance_template(Some("example"));
let x = ManagedInstanceVersion::new().set_or_clear_instance_template(None::<String>);Trait Implementations§
Source§impl Clone for ManagedInstanceVersion
impl Clone for ManagedInstanceVersion
Source§fn clone(&self) -> ManagedInstanceVersion
fn clone(&self) -> ManagedInstanceVersion
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 ManagedInstanceVersion
impl Debug for ManagedInstanceVersion
Source§impl Default for ManagedInstanceVersion
impl Default for ManagedInstanceVersion
Source§fn default() -> ManagedInstanceVersion
fn default() -> ManagedInstanceVersion
Returns the “default value” for a type. Read more
Source§impl Message for ManagedInstanceVersion
impl Message for ManagedInstanceVersion
Source§impl PartialEq for ManagedInstanceVersion
impl PartialEq for ManagedInstanceVersion
impl StructuralPartialEq for ManagedInstanceVersion
Auto Trait Implementations§
impl Freeze for ManagedInstanceVersion
impl RefUnwindSafe for ManagedInstanceVersion
impl Send for ManagedInstanceVersion
impl Sync for ManagedInstanceVersion
impl Unpin for ManagedInstanceVersion
impl UnwindSafe for ManagedInstanceVersion
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