pub struct ComputeInstanceOptions {
pub instance_type: String,
pub options: Option<Vec<ComputeInstanceDetails>>,
}Expand description
Multiple Compute Instance Configuration instance details.
Fields§
§instance_type: String§options: Option<Vec<ComputeInstanceDetails>>The Compute Instance Configuration parameters.
Implementations§
Source§impl ComputeInstanceOptions
impl ComputeInstanceOptions
Sourcepub fn new(required: ComputeInstanceOptionsRequired) -> Self
pub fn new(required: ComputeInstanceOptionsRequired) -> Self
Create a new ComputeInstanceOptions with required fields
Sourcepub fn set_options(self, value: Option<Vec<ComputeInstanceDetails>>) -> Self
pub fn set_options(self, value: Option<Vec<ComputeInstanceDetails>>) -> Self
Set options
Sourcepub fn set_instance_type(self, value: String) -> Self
pub fn set_instance_type(self, value: String) -> Self
Set instance_type
Sourcepub fn with_options(self, value: Vec<ComputeInstanceDetails>) -> Self
pub fn with_options(self, value: Vec<ComputeInstanceDetails>) -> Self
Set options (unwraps Option)
Trait Implementations§
Source§impl Clone for ComputeInstanceOptions
impl Clone for ComputeInstanceOptions
Source§fn clone(&self) -> ComputeInstanceOptions
fn clone(&self) -> ComputeInstanceOptions
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 ComputeInstanceOptions
impl Debug for ComputeInstanceOptions
Source§impl<'de> Deserialize<'de> for ComputeInstanceOptions
impl<'de> Deserialize<'de> for ComputeInstanceOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ComputeInstanceOptions
impl RefUnwindSafe for ComputeInstanceOptions
impl Send for ComputeInstanceOptions
impl Sync for ComputeInstanceOptions
impl Unpin for ComputeInstanceOptions
impl UnsafeUnpin for ComputeInstanceOptions
impl UnwindSafe for ComputeInstanceOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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