pub struct InputStateHistoryEntry {
pub timestamp: DateTime<Utc>,
pub from: InputLifecycleState,
pub to: InputLifecycleState,
pub reason: Option<String>,
}Expand description
A single entry in the input’s state history.
Fields§
§timestamp: DateTime<Utc>When this transition occurred.
from: InputLifecycleStateThe state transitioned from.
to: InputLifecycleStateThe state transitioned to.
reason: Option<String>Optional reason for the transition.
Trait Implementations§
Source§impl Clone for InputStateHistoryEntry
impl Clone for InputStateHistoryEntry
Source§fn clone(&self) -> InputStateHistoryEntry
fn clone(&self) -> InputStateHistoryEntry
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 InputStateHistoryEntry
impl Debug for InputStateHistoryEntry
Source§impl<'de> Deserialize<'de> for InputStateHistoryEntry
impl<'de> Deserialize<'de> for InputStateHistoryEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InputStateHistoryEntry
impl RefUnwindSafe for InputStateHistoryEntry
impl Send for InputStateHistoryEntry
impl Sync for InputStateHistoryEntry
impl Unpin for InputStateHistoryEntry
impl UnsafeUnpin for InputStateHistoryEntry
impl UnwindSafe for InputStateHistoryEntry
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