[][src]Struct eventmill::event::DomainEventView

pub struct DomainEventView<'a, E, A> where
    A: WithAggregateId
{ pub aggregate_id: &'a AggregateIdOf<A>, pub sequence: Sequence, pub time: DateTime<Utc>, pub data: &'a E, pub metadata: &'a Metadata, }

Fields

aggregate_id: &'a AggregateIdOf<A>sequence: Sequencetime: DateTime<Utc>data: &'a Emetadata: &'a Metadata

Implementations

impl<'a, E, A> DomainEventView<'a, E, A> where
    A: WithAggregateId
[src]

pub fn transmute<U, B>(self, other_data: &'a U) -> DomainEventView<U, B> where
    B: WithAggregateId,
    &'a AggregateIdOf<A>: Into<&'a AggregateIdOf<B>>, 
[src]

pub fn aggregate_id(&self) -> &AggregateIdOf<A>[src]

pub fn sequence(&self) -> Sequence[src]

pub fn time(&self) -> DateTime<Utc>[src]

pub fn data(&self) -> &E[src]

pub fn metadata(&self) -> &Metadata[src]

Trait Implementations

impl<'a, E, A> Clone for DomainEventView<'a, E, A> where
    A: WithAggregateId
[src]

implement Clone without requiring type parameter A to implement Clone

impl<'a, E: Debug, A: Debug> Debug for DomainEventView<'a, E, A> where
    A: WithAggregateId
[src]

impl<'a, E, A> PartialEq<DomainEventView<'a, E, A>> for DomainEventView<'a, E, A> where
    E: PartialEq,
    A: WithAggregateId
[src]

implement PartialEq without requiring type parameter A to implement PartialEq

Auto Trait Implementations

impl<'a, E, A> RefUnwindSafe for DomainEventView<'a, E, A> where
    E: RefUnwindSafe,
    <A as WithAggregateId>::Id: RefUnwindSafe

impl<'a, E, A> Send for DomainEventView<'a, E, A> where
    E: Sync,
    <A as WithAggregateId>::Id: Sync

impl<'a, E, A> Sync for DomainEventView<'a, E, A> where
    E: Sync,
    <A as WithAggregateId>::Id: Sync

impl<'a, E, A> Unpin for DomainEventView<'a, E, A>

impl<'a, E, A> UnwindSafe for DomainEventView<'a, E, A> where
    E: RefUnwindSafe,
    <A as WithAggregateId>::Id: RefUnwindSafe

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> 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, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.