#[non_exhaustive]pub struct MoveInstanceMetadata {
pub target_config: String,
pub progress: Option<OperationProgress>,
pub cancel_time: Option<Timestamp>,
/* private fields */
}
Expand description
Metadata type for the operation returned by MoveInstance.
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.target_config: String
The target instance configuration where to move the instance.
Values are of the form projects/<project>/instanceConfigs/<config>
.
progress: Option<OperationProgress>
The progress of the MoveInstance operation. progress_percent is reset when cancellation is requested.
cancel_time: Option<Timestamp>
The time at which this operation was cancelled.
Implementations§
Source§impl MoveInstanceMetadata
impl MoveInstanceMetadata
pub fn new() -> Self
Sourcepub fn set_target_config<T: Into<String>>(self, v: T) -> Self
pub fn set_target_config<T: Into<String>>(self, v: T) -> Self
Sets the value of target_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 MoveInstanceMetadata
impl Clone for MoveInstanceMetadata
Source§fn clone(&self) -> MoveInstanceMetadata
fn clone(&self) -> MoveInstanceMetadata
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 MoveInstanceMetadata
impl Debug for MoveInstanceMetadata
Source§impl Default for MoveInstanceMetadata
impl Default for MoveInstanceMetadata
Source§fn default() -> MoveInstanceMetadata
fn default() -> MoveInstanceMetadata
Returns the “default value” for a type. Read more
Source§impl Message for MoveInstanceMetadata
impl Message for MoveInstanceMetadata
Source§impl PartialEq for MoveInstanceMetadata
impl PartialEq for MoveInstanceMetadata
impl StructuralPartialEq for MoveInstanceMetadata
Auto Trait Implementations§
impl Freeze for MoveInstanceMetadata
impl RefUnwindSafe for MoveInstanceMetadata
impl Send for MoveInstanceMetadata
impl Sync for MoveInstanceMetadata
impl Unpin for MoveInstanceMetadata
impl UnwindSafe for MoveInstanceMetadata
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