[−][src]Struct eventmill::command::DomainCommand
Fields
aggregate_id: AggregateIdOf<A>
aggregate_generation: Generation
data: C
Implementations
impl<C, A> DomainCommand<C, A> where
A: WithAggregateId,
[src]
A: WithAggregateId,
pub fn new(
aggregate_id: AggregateIdOf<A>,
aggregate_generation: impl Into<Generation>,
data: impl Into<C>
) -> Self
[src]
aggregate_id: AggregateIdOf<A>,
aggregate_generation: impl Into<Generation>,
data: impl Into<C>
) -> Self
Trait Implementations
impl<C: Clone, A: Clone> Clone for DomainCommand<C, A> where
A: WithAggregateId,
[src]
A: WithAggregateId,
fn clone(&self) -> DomainCommand<C, A>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Debug, A: Debug> Debug for DomainCommand<C, A> where
A: WithAggregateId,
[src]
A: WithAggregateId,
impl<'de, C, A> Deserialize<'de> for DomainCommand<C, A> where
A: WithAggregateId,
C: Deserialize<'de>,
A: Deserialize<'de>,
[src]
A: WithAggregateId,
C: Deserialize<'de>,
A: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<C, A, S> DispatchCommand<DomainCommand<C, A>, A> for Core<S> where
A: Aggregate<<A as HandleCommand<C, A>>::Event> + AggregateType + WithAggregateId + HandleCommand<C, A> + InitializeAggregate<State = A>,
<A as HandleCommand<C, A>>::Event: 'static + EventType,
S: EventSource<<VersionedAggregate<A> as HandleCommand<C, VersionedAggregate<A>>>::Event, VersionedAggregate<A>> + EventSink<<VersionedAggregate<A> as HandleCommand<C, VersionedAggregate<A>>>::Event, VersionedAggregate<A>>,
[src]
A: Aggregate<<A as HandleCommand<C, A>>::Event> + AggregateType + WithAggregateId + HandleCommand<C, A> + InitializeAggregate<State = A>,
<A as HandleCommand<C, A>>::Event: 'static + EventType,
S: EventSource<<VersionedAggregate<A> as HandleCommand<C, VersionedAggregate<A>>>::Event, VersionedAggregate<A>> + EventSink<<VersionedAggregate<A> as HandleCommand<C, VersionedAggregate<A>>>::Event, VersionedAggregate<A>>,
type Context = <A as HandleCommand<C, A>>::Context
type Output = VersionedAggregate<A>
type Error = CoreDispatchError<S, C, A>
fn dispatch_command(
&self,
DomainCommand { aggregate_id: aggregate_id, aggregate_generation: aggregate_generation, data: data }: DomainCommand<C, A>,
context: &Self::Context
) -> Result<Self::Output, Self::Error>
[src]
&self,
DomainCommand { aggregate_id: aggregate_id, aggregate_generation: aggregate_generation, data: data }: DomainCommand<C, A>,
context: &Self::Context
) -> Result<Self::Output, Self::Error>
impl<'_, C, A> From<(C, &'_ VersionedAggregate<A>)> for DomainCommand<C, A> where
A: WithAggregateId,
[src]
A: WithAggregateId,
fn from((command, aggregate): (C, &VersionedAggregate<A>)) -> Self
[src]
impl<C: PartialEq, A: PartialEq> PartialEq<DomainCommand<C, A>> for DomainCommand<C, A> where
A: WithAggregateId,
[src]
A: WithAggregateId,
fn eq(&self, other: &DomainCommand<C, A>) -> bool
[src]
fn ne(&self, other: &DomainCommand<C, A>) -> bool
[src]
impl<C, A> Serialize for DomainCommand<C, A> where
A: WithAggregateId,
C: Serialize,
A: Serialize,
[src]
A: WithAggregateId,
C: Serialize,
A: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<C, A> StructuralPartialEq for DomainCommand<C, A> where
A: WithAggregateId,
[src]
A: WithAggregateId,
Auto Trait Implementations
impl<C, A> RefUnwindSafe for DomainCommand<C, A> where
C: RefUnwindSafe,
<A as WithAggregateId>::Id: RefUnwindSafe,
C: RefUnwindSafe,
<A as WithAggregateId>::Id: RefUnwindSafe,
impl<C, A> Send for DomainCommand<C, A> where
C: Send,
<A as WithAggregateId>::Id: Send,
C: Send,
<A as WithAggregateId>::Id: Send,
impl<C, A> Sync for DomainCommand<C, A> where
C: Sync,
<A as WithAggregateId>::Id: Sync,
C: Sync,
<A as WithAggregateId>::Id: Sync,
impl<C, A> Unpin for DomainCommand<C, A> where
C: Unpin,
<A as WithAggregateId>::Id: Unpin,
C: Unpin,
<A as WithAggregateId>::Id: Unpin,
impl<C, A> UnwindSafe for DomainCommand<C, A> where
C: UnwindSafe,
<A as WithAggregateId>::Id: UnwindSafe,
C: 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>,