pub struct QueryContext {
pub request: RequestContext,
pub store: Option<Store>,
}Expand description
What a query handler gets besides the query’s data and meta (the ctx of
Listener::query).
Fields§
§request: RequestContextWho asks: check permissions here.
store: Option<Store>The listener’s store, if it has one (Listener::store).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for QueryContext
impl !UnwindSafe for QueryContext
impl Forget for QueryContext
impl Freeze for QueryContext
impl Move for QueryContext
impl Send for QueryContext
impl Sync for QueryContext
impl Unpin for QueryContext
impl UnsafeUnpin for QueryContext
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