[−][src]Struct eventmill::event::DomainEventView
Fields
aggregate_id: &'a AggregateIdOf<A>
sequence: Sequence
time: DateTime<Utc>
data: &'a E
metadata: &'a Metadata
Implementations
impl<'a, E, A> DomainEventView<'a, E, A> where
A: WithAggregateId,
[src]
A: WithAggregateId,
pub fn transmute<U, B>(self, other_data: &'a U) -> DomainEventView<U, B> where
B: WithAggregateId,
&'a AggregateIdOf<A>: Into<&'a AggregateIdOf<B>>,
[src]
B: WithAggregateId,
&'a AggregateIdOf<A>: Into<&'a AggregateIdOf<B>>,
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]
A: WithAggregateId,
implement Clone without requiring type parameter A to implement Clone
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, E: Debug, A: Debug> Debug for DomainEventView<'a, E, A> where
A: WithAggregateId,
[src]
A: WithAggregateId,
impl<'a, E, A> PartialEq<DomainEventView<'a, E, A>> for DomainEventView<'a, E, A> where
E: PartialEq,
A: WithAggregateId,
[src]
E: PartialEq,
A: WithAggregateId,
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,
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,
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,
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,
E: RefUnwindSafe,
<A as WithAggregateId>::Id: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,