pub struct StoredEvent {
pub id: i64,
pub session_id: i64,
pub seq: i64,
pub at: DateTime<Utc>,
pub kind: EventKind,
pub text: String,
}Expand description
A persisted event as it comes out of the DB. seq is the
per-session monotonic counter; ordering by seq is the
canonical replay order.
Fields§
§id: i64§session_id: i64§seq: i64§at: DateTime<Utc>§kind: EventKind§text: StringTrait Implementations§
Source§impl Clone for StoredEvent
impl Clone for StoredEvent
Source§fn clone(&self) -> StoredEvent
fn clone(&self) -> StoredEvent
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 StoredEvent
impl Debug for StoredEvent
Source§impl PartialEq for StoredEvent
impl PartialEq for StoredEvent
impl Eq for StoredEvent
impl StructuralPartialEq for StoredEvent
Auto Trait Implementations§
impl Freeze for StoredEvent
impl RefUnwindSafe for StoredEvent
impl Send for StoredEvent
impl Sync for StoredEvent
impl Unpin for StoredEvent
impl UnsafeUnpin for StoredEvent
impl UnwindSafe for StoredEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.