#[non_exhaustive]pub struct ClusterStatus {
pub state: State,
pub detail: String,
pub state_start_time: Option<Timestamp>,
pub substate: Substate,
/* private fields */
}Expand description
The status of a cluster and its instances.
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.state: StateOutput only. The cluster’s state.
detail: StringOptional. Output only. Details of cluster’s state.
state_start_time: Option<Timestamp>Output only. Time when this state was entered (see JSON representation of Timestamp).
substate: SubstateOutput only. Additional state information that includes status reported by the agent.
Implementations§
Source§impl ClusterStatus
impl ClusterStatus
pub fn new() -> Self
Sourcepub fn set_detail<T: Into<String>>(self, v: T) -> Self
pub fn set_detail<T: Into<String>>(self, v: T) -> Self
Sets the value of detail.
Sourcepub fn set_state_start_time<T>(self, v: T) -> Self
pub fn set_state_start_time<T>(self, v: T) -> Self
Sets the value of state_start_time.
Sourcepub fn set_or_clear_state_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_state_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of state_start_time.
Sourcepub fn set_substate<T: Into<Substate>>(self, v: T) -> Self
pub fn set_substate<T: Into<Substate>>(self, v: T) -> Self
Sets the value of substate.
Trait Implementations§
Source§impl Clone for ClusterStatus
impl Clone for ClusterStatus
Source§fn clone(&self) -> ClusterStatus
fn clone(&self) -> ClusterStatus
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 ClusterStatus
impl Debug for ClusterStatus
Source§impl Default for ClusterStatus
impl Default for ClusterStatus
Source§fn default() -> ClusterStatus
fn default() -> ClusterStatus
Returns the “default value” for a type. Read more
Source§impl Message for ClusterStatus
impl Message for ClusterStatus
Source§impl PartialEq for ClusterStatus
impl PartialEq for ClusterStatus
impl StructuralPartialEq for ClusterStatus
Auto Trait Implementations§
impl Freeze for ClusterStatus
impl RefUnwindSafe for ClusterStatus
impl Send for ClusterStatus
impl Sync for ClusterStatus
impl Unpin for ClusterStatus
impl UnwindSafe for ClusterStatus
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