[][src]Struct cqrs_core::BorrowedRawEvent

pub struct BorrowedRawEvent<'row> {
    pub event_id: EventNumber,
    pub aggregate_type: &'row str,
    pub entity_id: &'row str,
    pub sequence: EventNumber,
    pub event_type: &'row str,
    pub payload: &'row [u8],
}

An owned, raw view of event data.

Fields

event_id: EventNumber

The event id.

aggregate_type: &'row str

The aggregate type.

entity_id: &'row str

The entity id.

sequence: EventNumber

The sequence number of this event in the entity's event stream.

event_type: &'row str

The event type.

payload: &'row [u8]

The raw event payload.

Trait Implementations

impl<'row> Eq for BorrowedRawEvent<'row>[src]

impl<'row> Copy for BorrowedRawEvent<'row>[src]

impl<'row> PartialEq<BorrowedRawEvent<'row>> for BorrowedRawEvent<'row>[src]

impl<'row> Clone for BorrowedRawEvent<'row>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'row> Debug for BorrowedRawEvent<'row>[src]

impl<'row> Hash for BorrowedRawEvent<'row>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<'row> Send for BorrowedRawEvent<'row>

impl<'row> Sync for BorrowedRawEvent<'row>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.