Struct dendrite_auth::dendrite::axon_utils::AggregateContext
source · pub struct AggregateContext<P>{
pub aggregate_id: Option<String>,
/* private fields */
}
Fields§
§aggregate_id: Option<String>
Trait Implementations§
source§impl<P> AggregateContextTrait<P> for AggregateContext<P>
impl<P> AggregateContextTrait<P> for AggregateContext<P>
fn emit( &mut self, event_type: &str, event: Box<dyn ApplicableTo<P, Event>> ) -> Result<(), Error>
fn get_projection<'life0, 'life1, 'async_trait>(
&'life0 mut self,
aggregate_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<P, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
AggregateContext<P>: 'async_trait,
source§impl<P> Clone for AggregateContext<P>
impl<P> Clone for AggregateContext<P>
source§fn clone(&self) -> AggregateContext<P>
fn clone(&self) -> AggregateContext<P>
Returns a copy 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<P> !RefUnwindSafe for AggregateContext<P>
impl<P> Send for AggregateContext<P>
impl<P> Sync for AggregateContext<P>
impl<P> Unpin for AggregateContext<P>where
P: Unpin,
impl<P> !UnwindSafe for AggregateContext<P>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request