Struct apollo_client::open::OpenApiClientBuilder
source · [−]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
impl !RefUnwindSafe for OpenApiClientBuilder
impl Send for OpenApiClientBuilder
impl Sync for OpenApiClientBuilder
impl Unpin for OpenApiClientBuilder
impl !UnwindSafe for OpenApiClientBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
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