Struct prima_bridge::GraphQLRequest[][src]

pub struct GraphQLRequest<'a> { /* fields omitted */ }
Expand description

The GraphQLRequest is a struct that represent a GraphQL request to be done with the Bridge

Implementations

creates a new GraphQLRequest

Trait Implementations

sets the raw body for the request it will get delivered in the request as is. Read more

sets a serializable body for the request

sets request method. Defaults to GET.

sets the destination path (relative to the url defined in the bridge) for the request

ignore the status code, and parse the results even if the response has a wrong status code. This is useful when you are dealing with an api that return errors with a not 2XX status codes. Read more

set request timeout

get request timeout

adds a new set of headers to the request. Any header already present gets merged.

adds a new set of headers to the request. Any header already present gets removed.

retrurns a unique id for the request

adds a new set of headers to the request. Any header already present gets merged.

add a custom header to the set of request headers

add a custom query string param

add a custom query string param

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more