#[non_exhaustive]pub struct ClusterOperationMetadata {
pub cluster_name: String,
pub cluster_uuid: String,
pub status: Option<ClusterOperationStatus>,
pub status_history: Vec<ClusterOperationStatus>,
pub operation_type: String,
pub description: String,
pub labels: HashMap<String, String>,
pub warnings: Vec<String>,
pub child_operation_ids: Vec<String>,
/* private fields */
}Expand description
Metadata describing the operation.
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.cluster_name: StringOutput only. Name of the cluster for the operation.
cluster_uuid: StringOutput only. Cluster UUID for the operation.
status: Option<ClusterOperationStatus>Output only. Current operation status.
status_history: Vec<ClusterOperationStatus>Output only. The previous operation status.
operation_type: StringOutput only. The operation type.
description: StringOutput only. Short description of operation.
labels: HashMap<String, String>Output only. Labels associated with the operation
warnings: Vec<String>Output only. Errors encountered during operation execution.
child_operation_ids: Vec<String>Output only. Child operation ids
Implementations§
Source§impl ClusterOperationMetadata
impl ClusterOperationMetadata
pub fn new() -> Self
Sourcepub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_name.
Sourcepub fn set_cluster_uuid<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_uuid<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_uuid.
Sourcepub fn set_status<T>(self, v: T) -> Selfwhere
T: Into<ClusterOperationStatus>,
pub fn set_status<T>(self, v: T) -> Selfwhere
T: Into<ClusterOperationStatus>,
Sets the value of status.
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<ClusterOperationStatus>,
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<ClusterOperationStatus>,
Sets or clears the value of status.
Sourcepub fn set_status_history<T, V>(self, v: T) -> Self
pub fn set_status_history<T, V>(self, v: T) -> Self
Sets the value of status_history.
Sourcepub fn set_operation_type<T: Into<String>>(self, v: T) -> Self
pub fn set_operation_type<T: Into<String>>(self, v: T) -> Self
Sets the value of operation_type.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_warnings<T, V>(self, v: T) -> Self
pub fn set_warnings<T, V>(self, v: T) -> Self
Sets the value of warnings.
Sourcepub fn set_child_operation_ids<T, V>(self, v: T) -> Self
pub fn set_child_operation_ids<T, V>(self, v: T) -> Self
Sets the value of child_operation_ids.
Trait Implementations§
Source§impl Clone for ClusterOperationMetadata
impl Clone for ClusterOperationMetadata
Source§fn clone(&self) -> ClusterOperationMetadata
fn clone(&self) -> ClusterOperationMetadata
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 ClusterOperationMetadata
impl Debug for ClusterOperationMetadata
Source§impl Default for ClusterOperationMetadata
impl Default for ClusterOperationMetadata
Source§fn default() -> ClusterOperationMetadata
fn default() -> ClusterOperationMetadata
Returns the “default value” for a type. Read more
Source§impl Message for ClusterOperationMetadata
impl Message for ClusterOperationMetadata
Source§impl PartialEq for ClusterOperationMetadata
impl PartialEq for ClusterOperationMetadata
impl StructuralPartialEq for ClusterOperationMetadata
Auto Trait Implementations§
impl Freeze for ClusterOperationMetadata
impl RefUnwindSafe for ClusterOperationMetadata
impl Send for ClusterOperationMetadata
impl Sync for ClusterOperationMetadata
impl Unpin for ClusterOperationMetadata
impl UnwindSafe for ClusterOperationMetadata
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