Struct intrepid_model::Event
source · pub struct Event {
pub stream_name: String,
pub kind: EventKind,
pub data: Bytes,
}Expand description
An event in a stream. This is slimmer than the EventRecord type, and is
used for most public interactions with events.
Fields§
§stream_name: StringThe name of the stream that the event is in.
kind: EventKindThe kind of event.
data: BytesThe main data of the event.
Implementations§
Trait Implementations§
source§impl From<Event> for EventRecord
impl From<Event> for EventRecord
source§impl IntoCache for Event
impl IntoCache for Event
source§fn into_cache(self) -> CacheRecord
fn into_cache(self) -> CacheRecord
Consume the type, producing a
CacheRecordAuto Trait Implementations§
impl !Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEvent for T
impl<T> IntoEvent for T
source§fn into_event(self) -> Event
fn into_event(self) -> Event
Consume the type, producing an
Event