#[non_exhaustive]pub struct GraphqlRequestInfo {
pub method: Method,
pub uri: Uri,
pub headers: HeaderMap,
pub request_id: Option<String>,
pub transport: Transport,
pub endpoint: Arc<str>,
}Expand description
The transport request an operation arrived on. Available to every
resolver as ctx.data::<GraphqlRequestInfo>().
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.method: MethodHTTP method of the request (for a WebSocket, of the upgrade request).
uri: UriRequest URI.
headers: HeaderMapRequest headers.
request_id: Option<String>Autumn’s request id, when the request-id middleware assigned one.
transport: TransportWhich transport carried the operation.
endpoint: Arc<str>The mount path of the endpoint that served it.
Trait Implementations§
Source§impl Clone for GraphqlRequestInfo
impl Clone for GraphqlRequestInfo
Auto Trait Implementations§
impl !Freeze for GraphqlRequestInfo
impl Forget for GraphqlRequestInfo
impl RefUnwindSafe for GraphqlRequestInfo
impl Send for GraphqlRequestInfo
impl Sync for GraphqlRequestInfo
impl Unpin for GraphqlRequestInfo
impl UnsafeUnpin for GraphqlRequestInfo
impl UnwindSafe for GraphqlRequestInfo
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Scoped for T
impl<T> Scoped for T
Source§fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
Open a deferred
ScopeQuery for this type. Resolves the
registered scope at .load() time, not here.