Struct apollo_router::services::subgraph::Request
source ยท #[non_exhaustive]pub struct Request {
pub supergraph_request: Arc<Request<Request>>,
pub subgraph_request: Request<Request>,
pub operation_kind: OperationKind,
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: Arc<Request<Request>>Original request to the Router.
subgraph_request: Request<Request>ยงoperation_kind: OperationKindยง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 Request.
Required parameters are required in non-testing code to create a Request.
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โ Request.
This does not enforce the provision of the data that is required for a fully functional Request. Itโs usually enough for testing, when a fully consructed Request is difficult to construct and not required for the pusposes of the test.
Trait Implementationsยง
sourceยงimpl Service<Request> for MockSubgraph
impl Service<Request> for MockSubgraph
ยงtype Future = Ready<Result<<MockSubgraph as Service<Request>>::Response, <MockSubgraph as Service<Request>>::Error>>
type Future = Ready<Result<<MockSubgraph as Service<Request>>::Response, <MockSubgraph as Service<Request>>::Error>>
The future response value.
sourceยงimpl Service<Request> for MockSubgraphService
impl Service<Request> for MockSubgraphService
ยงtype Future = Pin<Box<dyn Future<Output = Result<<MockSubgraphService as Service<Request>>::Response, <MockSubgraphService as Service<Request>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<MockSubgraphService as Service<Request>>::Response, <MockSubgraphService 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::Requestsourceยงimpl<T> Variant for Twhere
T: Any + Clone + SendSync,
impl<T> Variant for Twhere T: Any + Clone + SendSync,
sourceยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.sourceยงfn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.