pub struct AggregateRootBuilder<T>where
T: Aggregate,{ /* private fields */ }
Expand description
Builder type for new AggregateRoot
instances.
Implementations§
Source§impl<T> AggregateRootBuilder<T>
impl<T> AggregateRootBuilder<T>
Sourcepub fn build(&self, id: T::Id) -> AggregateRoot<T>
pub fn build(&self, id: T::Id) -> AggregateRoot<T>
Builds a new AggregateRoot
instance for the specified Aggregate Id
.
Sourcepub fn build_with_state(
&self,
id: T::Id,
version: u32,
state: T::State,
) -> AggregateRoot<T>
pub fn build_with_state( &self, id: T::Id, version: u32, state: T::State, ) -> AggregateRoot<T>
Builds a new AggregateRoot
instance for the specified Aggregate
with a specified State
value.
Trait Implementations§
Source§impl<T> Clone for AggregateRootBuilder<T>
impl<T> Clone for AggregateRootBuilder<T>
Source§fn clone(&self) -> AggregateRootBuilder<T>
fn clone(&self) -> AggregateRootBuilder<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for AggregateRootBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for AggregateRootBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for AggregateRootBuilder<T>where
T: Send,
impl<T> Sync for AggregateRootBuilder<T>where
T: Sync,
impl<T> Unpin for AggregateRootBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for AggregateRootBuilder<T>where
T: 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