#[non_exhaustive]pub struct StateHistory {
pub state: State,
pub state_message: String,
pub state_start_time: Option<Timestamp>,
/* private fields */
}Expand description
Historical state information.
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 state of the batch at this point in history.
state_message: StringOutput only. Details about the state at this point in history.
state_start_time: Option<Timestamp>Output only. The time when the batch entered the historical state.
Implementations§
Source§impl StateHistory
impl StateHistory
pub fn new() -> Self
Sourcepub fn set_state_message<T: Into<String>>(self, v: T) -> Self
pub fn set_state_message<T: Into<String>>(self, v: T) -> Self
Sets the value of state_message.
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.
Trait Implementations§
Source§impl Clone for StateHistory
impl Clone for StateHistory
Source§fn clone(&self) -> StateHistory
fn clone(&self) -> StateHistory
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 StateHistory
impl Debug for StateHistory
Source§impl Default for StateHistory
impl Default for StateHistory
Source§fn default() -> StateHistory
fn default() -> StateHistory
Returns the “default value” for a type. Read more
Source§impl Message for StateHistory
impl Message for StateHistory
Source§impl PartialEq for StateHistory
impl PartialEq for StateHistory
impl StructuralPartialEq for StateHistory
Auto Trait Implementations§
impl Freeze for StateHistory
impl RefUnwindSafe for StateHistory
impl Send for StateHistory
impl Sync for StateHistory
impl Unpin for StateHistory
impl UnwindSafe for StateHistory
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