pub struct OpenApiClientBuilder { /* private fields */ }
This is supported on crate feature open only.
Expand description

The builder for OpenApiClient.

Implementations

Create a builder.

Customize inner http client.

Example
use apollo_client::open::OpenApiClientBuilder;
use std::time::Duration;

OpenApiClientBuilder::new(
    "http://127.0.0.1:8070/".parse().unwrap(),
    "391cc4053f8cce2e452a0e6db8925bbba503f434",
)
.unwrap()
.with_client_builder(|builder| builder.timeout(Duration::from_secs(6)));

Build the OpenApiClient.

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.

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.

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