pub struct InjectOptions {
pub run_process_managers: bool,
}Expand description
Options controlling the behaviour of AggregateStore::inject_event.
§Examples
use eventfold_es::InjectOptions;
// Default: do not run process managers after injection.
let opts = InjectOptions::default();
assert!(!opts.run_process_managers);
// Opt in to process manager triggering.
let opts = InjectOptions { run_process_managers: true };
assert!(opts.run_process_managers);Fields§
§run_process_managers: boolWhen true, call AggregateStore::run_process_managers after
appending the event. Defaults to false.
Trait Implementations§
Source§impl Clone for InjectOptions
impl Clone for InjectOptions
Source§fn clone(&self) -> InjectOptions
fn clone(&self) -> InjectOptions
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 Debug for InjectOptions
impl Debug for InjectOptions
Source§impl Default for InjectOptions
impl Default for InjectOptions
Source§fn default() -> InjectOptions
fn default() -> InjectOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InjectOptions
impl RefUnwindSafe for InjectOptions
impl Send for InjectOptions
impl Sync for InjectOptions
impl Unpin for InjectOptions
impl UnsafeUnpin for InjectOptions
impl UnwindSafe for InjectOptions
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