Struct cqrs_eventsourcing::FormatedEvent [−][src]
Fields
aggregate_id: String
aggregate_type: String
version: usize
payload: E
meta: MetaData
created_at: String
Implementations
impl<A, E> FormatedEvent<A, E> where
A: Aggregate,
E: DomainEvent<A>,
[src]
A: Aggregate,
E: DomainEvent<A>,
pub fn new(
aggregate_id: String,
aggregate_type: String,
version: usize,
payload: E,
meta: MetaData,
created_at: Option<&str>
) -> FormatedEvent<A, E>
[src]
aggregate_id: String,
aggregate_type: String,
version: usize,
payload: E,
meta: MetaData,
created_at: Option<&str>
) -> FormatedEvent<A, E>
Create a new FormatedEvent
pub fn create_many(
aggregate_id: &str,
current_version: usize,
events: Vec<E>,
meta: MetaData
) -> FormatedEvents<A, E>
[src]
aggregate_id: &str,
current_version: usize,
events: Vec<E>,
meta: MetaData
) -> FormatedEvents<A, E>
Create FormatedEvents from DomainEvents
Trait Implementations
impl<A, E> Clone for FormatedEvent<A, E> where
A: Aggregate,
E: DomainEvent<A>,
[src]
A: Aggregate,
E: DomainEvent<A>,
fn clone(&self) -> FormatedEvent<A, E>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A: Debug, E: Debug> Debug for FormatedEvent<A, E> where
A: Aggregate,
E: DomainEvent<A>,
[src]
A: Aggregate,
E: DomainEvent<A>,
impl<A, E> Serialize for FormatedEvent<A, E> where
A: Aggregate,
E: DomainEvent<A>,
E: Serialize,
[src]
A: Aggregate,
E: DomainEvent<A>,
E: Serialize,
Auto Trait Implementations
impl<A, E> RefUnwindSafe for FormatedEvent<A, E> where
A: RefUnwindSafe,
E: RefUnwindSafe,
A: RefUnwindSafe,
E: RefUnwindSafe,
impl<A, E> Send for FormatedEvent<A, E>
impl<A, E> Sync for FormatedEvent<A, E>
impl<A, E> Unpin for FormatedEvent<A, E> where
A: Unpin,
E: Unpin,
A: Unpin,
E: Unpin,
impl<A, E> UnwindSafe for FormatedEvent<A, E> where
A: UnwindSafe,
E: UnwindSafe,
A: UnwindSafe,
E: 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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,