pub struct CqrsProjectionOptions<TState, TEvent> {
pub name: String,
pub events: Option<Vec<String>>,
pub initial: TState,
pub reducer: CqrsProjectionReducer<TState, TEvent>,
}Expand description
CqrsProjectionOptions data container.
Fields§
§name: Stringname field for name.
events: Option<Vec<String>>events field for events.
initial: TStateinitial field for initial.
reducer: CqrsProjectionReducer<TState, TEvent>reducer field for reducer.
Trait Implementations§
Source§impl<TState: Clone, TEvent: Clone> Clone for CqrsProjectionOptions<TState, TEvent>
impl<TState: Clone, TEvent: Clone> Clone for CqrsProjectionOptions<TState, TEvent>
Source§fn clone(&self) -> CqrsProjectionOptions<TState, TEvent>
fn clone(&self) -> CqrsProjectionOptions<TState, TEvent>
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<TState, TEvent> Freeze for CqrsProjectionOptions<TState, TEvent>where
TState: Freeze,
impl<TState, TEvent> !RefUnwindSafe for CqrsProjectionOptions<TState, TEvent>
impl<TState, TEvent> !Send for CqrsProjectionOptions<TState, TEvent>
impl<TState, TEvent> !Sync for CqrsProjectionOptions<TState, TEvent>
impl<TState, TEvent> Unpin for CqrsProjectionOptions<TState, TEvent>where
TState: Unpin,
impl<TState, TEvent> UnsafeUnpin for CqrsProjectionOptions<TState, TEvent>where
TState: UnsafeUnpin,
impl<TState, TEvent> !UnwindSafe for CqrsProjectionOptions<TState, TEvent>
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