[−][src]Struct eventmill::event::NewEvent
Fields
aggregate_id: AggregateIdOf<A>
data: E
Implementations
impl<E, A> NewEvent<E, A> where
A: WithAggregateId,
[src]
A: WithAggregateId,
pub fn new(
aggregate_id: impl Into<AggregateIdOf<A>>,
data: impl Into<E>
) -> Self
[src]
aggregate_id: impl Into<AggregateIdOf<A>>,
data: impl Into<E>
) -> Self
pub fn unwrap(self) -> (AggregateIdOf<A>, E)
[src]
pub fn aggregate_id(&self) -> &AggregateIdOf<A>
[src]
pub fn data(&self) -> &E
[src]
Trait Implementations
impl<E, A> Clone for NewEvent<E, A> where
E: Clone,
A: WithAggregateId,
[src]
E: Clone,
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<E: Debug, A: Debug> Debug for NewEvent<E, A> where
A: WithAggregateId,
[src]
A: WithAggregateId,
impl<'de, E, A> Deserialize<'de> for NewEvent<E, A> where
A: WithAggregateId,
E: Deserialize<'de>,
A: Deserialize<'de>,
[src]
A: WithAggregateId,
E: Deserialize<'de>,
A: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<E, A> From<(<A as WithAggregateId>::Id, E)> for NewEvent<E, A> where
A: WithAggregateId,
[src]
A: WithAggregateId,
fn from((aggregate_id, data): (AggregateIdOf<A>, E)) -> Self
[src]
impl<E, A> PartialEq<NewEvent<E, A>> for NewEvent<E, A> where
E: PartialEq,
A: WithAggregateId,
[src]
E: PartialEq,
A: WithAggregateId,
implement PartialEq without requiring type parameter A to implement PartialEq
impl<E, A> Serialize for NewEvent<E, A> where
A: WithAggregateId,
E: Serialize,
A: Serialize,
[src]
A: WithAggregateId,
E: Serialize,
A: Serialize,
Auto Trait Implementations
impl<E, A> RefUnwindSafe for NewEvent<E, A> where
E: RefUnwindSafe,
<A as WithAggregateId>::Id: RefUnwindSafe,
E: RefUnwindSafe,
<A as WithAggregateId>::Id: RefUnwindSafe,
impl<E, A> Send for NewEvent<E, A> where
E: Send,
<A as WithAggregateId>::Id: Send,
E: Send,
<A as WithAggregateId>::Id: Send,
impl<E, A> Sync for NewEvent<E, A> where
E: Sync,
<A as WithAggregateId>::Id: Sync,
E: Sync,
<A as WithAggregateId>::Id: Sync,
impl<E, A> Unpin for NewEvent<E, A> where
E: Unpin,
<A as WithAggregateId>::Id: Unpin,
E: Unpin,
<A as WithAggregateId>::Id: Unpin,
impl<E, A> UnwindSafe for NewEvent<E, A> where
E: UnwindSafe,
<A as WithAggregateId>::Id: UnwindSafe,
E: UnwindSafe,
<A as WithAggregateId>::Id: UnwindSafe,
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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>,