pub struct CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent> {
pub name: String,
pub deliveries: Node<MessageBusAvailablePage<TPayload>>,
pub status: Node<CqrsStatus>,
pub events: Option<Node<CqrsEvent<TEvent>>>,
pub policy: CqrsMessagingPolicy<TPayload, TCommand>,
}Expand description
CqrsMessagingRecipeOptions data container.
Fields§
§name: Stringname field for name.
deliveries: Node<MessageBusAvailablePage<TPayload>>deliveries field for deliveries.
status: Node<CqrsStatus>status field for status.
events: Option<Node<CqrsEvent<TEvent>>>events field for events.
policy: CqrsMessagingPolicy<TPayload, TCommand>policy field for policy.
Implementations§
Source§impl<TPayload, TCommand, TEvent> CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>
impl<TPayload, TCommand, TEvent> CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>
Sourcepub fn new(
deliveries: Node<MessageBusAvailablePage<TPayload>>,
status: Node<CqrsStatus>,
policy: CqrsMessagingPolicy<TPayload, TCommand>,
) -> Self
pub fn new( deliveries: Node<MessageBusAvailablePage<TPayload>>, status: Node<CqrsStatus>, policy: CqrsMessagingPolicy<TPayload, TCommand>, ) -> Self
Creates or computes new.
Sourcepub fn with_events(self, events: Node<CqrsEvent<TEvent>>) -> Self
pub fn with_events(self, events: Node<CqrsEvent<TEvent>>) -> Self
Updates or reads with_events.
Trait Implementations§
Source§impl<TPayload: Clone, TCommand: Clone, TEvent: Clone> Clone for CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>
impl<TPayload: Clone, TCommand: Clone, TEvent: Clone> Clone for CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>
Source§fn clone(&self) -> CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>
fn clone(&self) -> CqrsMessagingRecipeOptions<TPayload, TCommand, 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<TPayload, TCommand, TEvent> Freeze for CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>
impl<TPayload, TCommand, TEvent> !RefUnwindSafe for CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>
impl<TPayload, TCommand, TEvent> !Send for CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>
impl<TPayload, TCommand, TEvent> !Sync for CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>
impl<TPayload, TCommand, TEvent> Unpin for CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>
impl<TPayload, TCommand, TEvent> UnsafeUnpin for CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>
impl<TPayload, TCommand, TEvent> !UnwindSafe for CqrsMessagingRecipeOptions<TPayload, TCommand, 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