Struct apollo_router::services::execution::Request
source ยท #[non_exhaustive]pub struct Request {
pub supergraph_request: Request<Request>,
pub query_plan: Arc<QueryPlan>,
pub context: Context,
/* private fields */
}Fields (Non-exhaustive)ยง
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.supergraph_request: Request<Request>Original request to the Router.
query_plan: Arc<QueryPlan>ยงcontext: ContextImplementationsยง
sourceยงimpl Request
impl Request
sourcepub fn builder() -> NewRequestBuilder
pub fn builder() -> NewRequestBuilder
This is the constructor (or builder) to use when constructing a real ExecutionRequest.
The parameters are not optional, because in a live situation all of these properties must be set and be correct to create a ExecutionRequest.
sourceยงimpl Request
impl Request
sourcepub fn fake_builder() -> FakeNewRequestBuilder
pub fn fake_builder() -> FakeNewRequestBuilder
This is the constructor (or builder) to use when constructing a โfakeโ ExecutionRequest.
This does not enforce the provision of the data that is required for a fully functional ExecutionRequest. Itโs usually enough for testing, when a fully consructed ExecutionRequest is difficult to construct and not required for the pusposes of the test.
Trait Implementationsยง
sourceยงimpl Service<Request> for MockExecutionService
impl Service<Request> for MockExecutionService
ยงtype Future = Pin<Box<dyn Future<Output = Result<<MockExecutionService as Service<Request>>::Response, <MockExecutionService as Service<Request>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<MockExecutionService as Service<Request>>::Response, <MockExecutionService as Service<Request>>::Error>> + Send>>
The future response value.
Auto Trait Implementationsยง
impl !RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl !UnwindSafe for Request
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> FutureExt for T
impl<T> FutureExt for T
sourceยงfn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
sourceยงfn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> 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