pub enum QueryOutcome {
Answered(Value),
Rejected(Rejected),
}Expand description
What became of a query, as a middleware that runs after requests gets it
(CheckOutcome::Query): its response data or why it was rejected.
Variants§
Answered(Value)
The read model’s answer.
Rejected(Rejected)
The read model or a middleware rejected the query.
Implementations§
Source§impl QueryOutcome
impl QueryOutcome
Sourcepub fn is_answered(&self) -> bool
pub fn is_answered(&self) -> bool
Whether the read model answered.
Trait Implementations§
Source§impl Clone for QueryOutcome
impl Clone for QueryOutcome
Source§impl Debug for QueryOutcome
impl Debug for QueryOutcome
Source§impl PartialEq for QueryOutcome
impl PartialEq for QueryOutcome
impl StructuralPartialEq for QueryOutcome
Auto Trait Implementations§
impl Forget for QueryOutcome
impl Freeze for QueryOutcomewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
*const Requirement is !null: Freeze,
PhantomData<Requirement>: Freeze,
impl Move for QueryOutcome
impl RefUnwindSafe for QueryOutcome
impl Send for QueryOutcome
impl Sync for QueryOutcome
impl Unpin for QueryOutcome
impl UnsafeUnpin for QueryOutcomewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
*const Requirement is !null: UnsafeUnpin,
PhantomData<Requirement>: UnsafeUnpin,
impl UnwindSafe for QueryOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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