#[non_exhaustive]pub struct CreateInstanceConfigMetadata {
pub instance_config: Option<InstanceConfig>,
pub progress: Option<OperationProgress>,
pub cancel_time: Option<Timestamp>,
/* private fields */
}
Expand description
Metadata type for the operation returned by CreateInstanceConfig.
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_config: Option<InstanceConfig>
The target instance configuration end state.
progress: Option<OperationProgress>
The progress of the CreateInstanceConfig operation.
cancel_time: Option<Timestamp>
The time at which this operation was cancelled.
Implementations§
Source§impl CreateInstanceConfigMetadata
impl CreateInstanceConfigMetadata
pub fn new() -> Self
Sourcepub fn set_instance_config<T>(self, v: T) -> Selfwhere
T: Into<InstanceConfig>,
pub fn set_instance_config<T>(self, v: T) -> Selfwhere
T: Into<InstanceConfig>,
Sets the value of instance_config.
Sourcepub fn set_or_clear_instance_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceConfig>,
pub fn set_or_clear_instance_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceConfig>,
Sets or clears the value of instance_config.
Sourcepub fn set_progress<T>(self, v: T) -> Selfwhere
T: Into<OperationProgress>,
pub fn set_progress<T>(self, v: T) -> Selfwhere
T: Into<OperationProgress>,
Sets the value of progress.
Sourcepub fn set_or_clear_progress<T>(self, v: Option<T>) -> Selfwhere
T: Into<OperationProgress>,
pub fn set_or_clear_progress<T>(self, v: Option<T>) -> Selfwhere
T: Into<OperationProgress>,
Sets or clears the value of progress.
Sourcepub fn set_cancel_time<T>(self, v: T) -> Self
pub fn set_cancel_time<T>(self, v: T) -> Self
Sets the value of cancel_time.
Sourcepub fn set_or_clear_cancel_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_cancel_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of cancel_time.
Trait Implementations§
Source§impl Clone for CreateInstanceConfigMetadata
impl Clone for CreateInstanceConfigMetadata
Source§fn clone(&self) -> CreateInstanceConfigMetadata
fn clone(&self) -> CreateInstanceConfigMetadata
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 CreateInstanceConfigMetadata
impl Debug for CreateInstanceConfigMetadata
Source§impl Default for CreateInstanceConfigMetadata
impl Default for CreateInstanceConfigMetadata
Source§fn default() -> CreateInstanceConfigMetadata
fn default() -> CreateInstanceConfigMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateInstanceConfigMetadata
impl PartialEq for CreateInstanceConfigMetadata
Source§fn eq(&self, other: &CreateInstanceConfigMetadata) -> bool
fn eq(&self, other: &CreateInstanceConfigMetadata) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateInstanceConfigMetadata
Auto Trait Implementations§
impl Freeze for CreateInstanceConfigMetadata
impl RefUnwindSafe for CreateInstanceConfigMetadata
impl Send for CreateInstanceConfigMetadata
impl Sync for CreateInstanceConfigMetadata
impl Unpin for CreateInstanceConfigMetadata
impl UnwindSafe for CreateInstanceConfigMetadata
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