pub struct MemoryEvent {
pub stream: String,
pub event_type: String,
pub body: String,
pub sequence: u64,
pub created_at: String,
}Expand description
An append-only event stored in a thingd stream.
Fields§
§stream: StringStream name, such as project:thingd or customer:cus_123.
event_type: StringEvent kind, such as decision.made.
body: StringSerialized event body.
sequence: u64Monotonic sequence assigned by the event log.
created_at: StringISO 8601 creation timestamp. Empty if not set.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryEvent
impl Clone for MemoryEvent
Source§fn clone(&self) -> MemoryEvent
fn clone(&self) -> MemoryEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MemoryEvent
impl Debug for MemoryEvent
impl Eq for MemoryEvent
Source§impl PartialEq for MemoryEvent
impl PartialEq for MemoryEvent
Source§fn eq(&self, other: &MemoryEvent) -> bool
fn eq(&self, other: &MemoryEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MemoryEvent
Auto Trait Implementations§
impl Freeze for MemoryEvent
impl RefUnwindSafe for MemoryEvent
impl Send for MemoryEvent
impl Sync for MemoryEvent
impl Unpin for MemoryEvent
impl UnsafeUnpin for MemoryEvent
impl UnwindSafe for MemoryEvent
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