#[non_exhaustive]pub struct UpdateInstanceMetadata {
pub instance: Option<Instance>,
pub start_time: Option<Timestamp>,
pub cancel_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub expected_fulfillment_period: FulfillmentPeriod,
/* private fields */
}
Expand description
Metadata type for the operation returned by UpdateInstance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.instance: Option<Instance>
The desired end state of the update.
start_time: Option<Timestamp>
The time at which UpdateInstance request was received.
cancel_time: Option<Timestamp>
The time at which this operation was cancelled. If set, this operation is in the process of undoing itself (which is guaranteed to succeed) and cannot be cancelled again.
end_time: Option<Timestamp>
The time at which this operation failed or was completed successfully.
expected_fulfillment_period: FulfillmentPeriod
The expected fulfillment period of this update operation.
Implementations§
Source§impl UpdateInstanceMetadata
impl UpdateInstanceMetadata
pub fn new() -> Self
Sourcepub fn set_instance<T>(self, v: T) -> Self
pub fn set_instance<T>(self, v: T) -> Self
Sets the value of instance.
Sourcepub fn set_or_clear_instance<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance<T>(self, v: Option<T>) -> Self
Sets or clears the value of instance.
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
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.
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time.
Sourcepub fn set_expected_fulfillment_period<T: Into<FulfillmentPeriod>>(
self,
v: T,
) -> Self
pub fn set_expected_fulfillment_period<T: Into<FulfillmentPeriod>>( self, v: T, ) -> Self
Sets the value of expected_fulfillment_period.
Trait Implementations§
Source§impl Clone for UpdateInstanceMetadata
impl Clone for UpdateInstanceMetadata
Source§fn clone(&self) -> UpdateInstanceMetadata
fn clone(&self) -> UpdateInstanceMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more