#[non_exhaustive]pub struct UpdateInstancePartitionMetadata {
pub instance_partition: Option<InstancePartition>,
pub start_time: Option<Timestamp>,
pub cancel_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
/* private fields */
}
Expand description
Metadata type for the operation returned by UpdateInstancePartition.
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_partition: Option<InstancePartition>
The desired end state of the update.
start_time: Option<Timestamp>
The time at which UpdateInstancePartition 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.
Implementations§
Source§impl UpdateInstancePartitionMetadata
impl UpdateInstancePartitionMetadata
pub fn new() -> Self
Sourcepub fn set_instance_partition<T>(self, v: T) -> Selfwhere
T: Into<InstancePartition>,
pub fn set_instance_partition<T>(self, v: T) -> Selfwhere
T: Into<InstancePartition>,
Sets the value of instance_partition.
Sourcepub fn set_or_clear_instance_partition<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstancePartition>,
pub fn set_or_clear_instance_partition<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstancePartition>,
Sets or clears the value of instance_partition.
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.
Trait Implementations§
Source§impl Clone for UpdateInstancePartitionMetadata
impl Clone for UpdateInstancePartitionMetadata
Source§fn clone(&self) -> UpdateInstancePartitionMetadata
fn clone(&self) -> UpdateInstancePartitionMetadata
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 Default for UpdateInstancePartitionMetadata
impl Default for UpdateInstancePartitionMetadata
Source§fn default() -> UpdateInstancePartitionMetadata
fn default() -> UpdateInstancePartitionMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateInstancePartitionMetadata
impl PartialEq for UpdateInstancePartitionMetadata
Source§fn eq(&self, other: &UpdateInstancePartitionMetadata) -> bool
fn eq(&self, other: &UpdateInstancePartitionMetadata) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for UpdateInstancePartitionMetadata
Auto Trait Implementations§
impl Freeze for UpdateInstancePartitionMetadata
impl RefUnwindSafe for UpdateInstancePartitionMetadata
impl Send for UpdateInstancePartitionMetadata
impl Sync for UpdateInstancePartitionMetadata
impl Unpin for UpdateInstancePartitionMetadata
impl UnwindSafe for UpdateInstancePartitionMetadata
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