[][src]Trait stellr::SolrClientBuilder

pub trait SolrClientBuilder {
    type HTTPClient;
    pub fn configure(self, config: &SolrClientConfig) -> Self::HTTPClient;
}

Adds methods to build an HTTP client configured according to a SolrClientConfig.

Currently this has only been implemented for the reqwest crate, and applies to reqwuest::ClientBuilder instances. As configure() returns a stock ClientBuilder, you can use the ClientBuilder's own terminus methods to construct the client.

NB. it is important to use the stellr::prelude to apply this trait to Reqwest::ClientBuilder.

Associated Types

Loading content...

Required methods

pub fn configure(self, config: &SolrClientConfig) -> Self::HTTPClient[src]

One-shot client configuration, based on a supplied SolrClientConfig

Loading content...

Implementations on Foreign Types

impl SolrClientBuilder for ClientBuilder[src]

type HTTPClient = ClientBuilder

Loading content...

Implementors

Loading content...