#[non_exhaustive]pub struct SessionStateHistory {
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 session at this point in the session history.
state_message: StringOutput only. Details about the state at this point in the session history.
state_start_time: Option<Timestamp>Output only. The time when the session entered the historical state.
Implementations§
Source§impl SessionStateHistory
impl SessionStateHistory
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 SessionStateHistory
impl Clone for SessionStateHistory
Source§fn clone(&self) -> SessionStateHistory
fn clone(&self) -> SessionStateHistory
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 SessionStateHistory
impl Debug for SessionStateHistory
Source§impl Default for SessionStateHistory
impl Default for SessionStateHistory
Source§fn default() -> SessionStateHistory
fn default() -> SessionStateHistory
Returns the “default value” for a type. Read more
Source§impl Message for SessionStateHistory
impl Message for SessionStateHistory
Source§impl PartialEq for SessionStateHistory
impl PartialEq for SessionStateHistory
impl StructuralPartialEq for SessionStateHistory
Auto Trait Implementations§
impl Freeze for SessionStateHistory
impl RefUnwindSafe for SessionStateHistory
impl Send for SessionStateHistory
impl Sync for SessionStateHistory
impl Unpin for SessionStateHistory
impl UnwindSafe for SessionStateHistory
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