[][src]Struct stellr::SolrClientConfig

pub struct SolrClientConfig {
    pub timeout: Duration,
    pub verbose: bool,
}

Configuration object for SolrClients

This struct stores request configuration information, which will be applied to every request for a solr client.

use stellr::prelude::*;
use stellr::SolrClientConfig;

let solr_config = SolrClientConfig { verbose: true, ..Default::default() };
let solr_client = stellr::DirectSolrClient::new("http://localhost:8983")?
    .set_request_config(solr_config);

Fields

timeout: Duration

HTTP request timeout

verbose: bool

Be verbose when making HTTP requests

Implementations

impl SolrClientConfig[src]

pub fn new() -> SolrClientConfig[src]

pub fn timeout(self, timeout: Duration) -> SolrClientConfig[src]

Set a custom timeout

pub fn verbose(self, verbose: bool) -> SolrClientConfig[src]

Set the client to be more verbose

Trait Implementations

impl Clone for SolrClientConfig[src]

impl Debug for SolrClientConfig[src]

impl Default for SolrClientConfig[src]

impl Display for SolrClientConfig[src]

impl Eq for SolrClientConfig[src]

impl Hash for SolrClientConfig[src]

impl Ord for SolrClientConfig[src]

impl PartialEq<SolrClientConfig> for SolrClientConfig[src]

impl PartialOrd<SolrClientConfig> for SolrClientConfig[src]

impl StructuralEq for SolrClientConfig[src]

impl StructuralPartialEq for SolrClientConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]