Struct apollo_client::conf::ApolloConfClientBuilder[][src]

pub struct ApolloConfClientBuilder { /* fields omitted */ }
This is supported on crate feature conf only.
Expand description

Builder for ApolloConfClient.

Implementations

Create a client request api via config service.

Example

use apollo_client::conf::ApolloConfClientBuilder;
use url::Url;

let _builder = ApolloConfClientBuilder::new_via_config_service(
    Url::parse("http://localhost:8080").unwrap()
).unwrap();

Customize inner http client.

Example

use apollo_client::conf::ApolloConfClientBuilder;
use std::time::Duration;

let mut client_builder: ApolloConfClientBuilder = todo!();
client_builder = client_builder.with_client_builder(|builder| {
    builder.timeout(Duration::from_secs(6))
});

Build the ApolloConfClient.

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.