pub struct VersionedAggregate<A> {
pub version: Version,
pub payload: A,
}Expand description
A structured tuple combining an aggregate and its current version.
Fields§
§version: VersionThe current version of the aggregate.
payload: AThe aggregate.
Trait Implementations§
Source§impl<A: Clone> Clone for VersionedAggregate<A>
impl<A: Clone> Clone for VersionedAggregate<A>
Source§fn clone(&self) -> VersionedAggregate<A>
fn clone(&self) -> VersionedAggregate<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<A: Debug> Debug for VersionedAggregate<A>
impl<A: Debug> Debug for VersionedAggregate<A>
Source§impl<A: Hash> Hash for VersionedAggregate<A>
impl<A: Hash> Hash for VersionedAggregate<A>
Source§impl<A: PartialEq> PartialEq for VersionedAggregate<A>
impl<A: PartialEq> PartialEq for VersionedAggregate<A>
impl<A: Copy> Copy for VersionedAggregate<A>
impl<A: Eq> Eq for VersionedAggregate<A>
impl<A> StructuralPartialEq for VersionedAggregate<A>
Auto Trait Implementations§
impl<A> Freeze for VersionedAggregate<A>where
A: Freeze,
impl<A> RefUnwindSafe for VersionedAggregate<A>where
A: RefUnwindSafe,
impl<A> Send for VersionedAggregate<A>where
A: Send,
impl<A> Sync for VersionedAggregate<A>where
A: Sync,
impl<A> Unpin for VersionedAggregate<A>where
A: Unpin,
impl<A> UnwindSafe for VersionedAggregate<A>where
A: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more