#[non_exhaustive]pub struct StateInfo {
pub info: Option<Info>,
/* private fields */
}Expand description
Represents additional information about the state of the cluster.
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.info: Option<Info>Implementations§
Source§impl StateInfo
impl StateInfo
pub fn new() -> Self
Sourcepub fn set_info<T: Into<Option<Info>>>(self, v: T) -> Self
pub fn set_info<T: Into<Option<Info>>>(self, v: T) -> Self
Sets the value of info.
Note that all the setters affecting info are mutually
exclusive.
Sourcepub fn update_info(&self) -> Option<&Box<UpdateInfo>>
pub fn update_info(&self) -> Option<&Box<UpdateInfo>>
The value of info
if it holds a UpdateInfo, None if the field is not set or
holds a different branch.
Sourcepub fn set_update_info<T: Into<Box<UpdateInfo>>>(self, v: T) -> Self
pub fn set_update_info<T: Into<Box<UpdateInfo>>>(self, v: T) -> Self
Sets the value of info
to hold a UpdateInfo.
Note that all the setters affecting info are
mutually exclusive.
Trait Implementations§
impl StructuralPartialEq for StateInfo
Auto Trait Implementations§
impl Freeze for StateInfo
impl RefUnwindSafe for StateInfo
impl Send for StateInfo
impl Sync for StateInfo
impl Unpin for StateInfo
impl UnwindSafe for StateInfo
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