#[non_exhaustive]pub struct CreateInstancePartitionMetadata {
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 CreateInstancePartition.
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 instance partition being created.
start_time: Option<Timestamp>
The time at which the CreateInstancePartition 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 CreateInstancePartitionMetadata
impl CreateInstancePartitionMetadata
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 CreateInstancePartitionMetadata
impl Clone for CreateInstancePartitionMetadata
Source§fn clone(&self) -> CreateInstancePartitionMetadata
fn clone(&self) -> CreateInstancePartitionMetadata
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 CreateInstancePartitionMetadata
impl Default for CreateInstancePartitionMetadata
Source§fn default() -> CreateInstancePartitionMetadata
fn default() -> CreateInstancePartitionMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateInstancePartitionMetadata
impl PartialEq for CreateInstancePartitionMetadata
Source§fn eq(&self, other: &CreateInstancePartitionMetadata) -> bool
fn eq(&self, other: &CreateInstancePartitionMetadata) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateInstancePartitionMetadata
Auto Trait Implementations§
impl Freeze for CreateInstancePartitionMetadata
impl RefUnwindSafe for CreateInstancePartitionMetadata
impl Send for CreateInstancePartitionMetadata
impl Sync for CreateInstancePartitionMetadata
impl Unpin for CreateInstancePartitionMetadata
impl UnwindSafe for CreateInstancePartitionMetadata
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