Struct anterofit::AdapterBuilder[][src]

pub struct AdapterBuilder<S, D, E, I> { /* fields omitted */ }

A builder for Adapter. Call Adapter::builder() to get an instance.

Methods

impl<S, D, E, I> AdapterBuilder<S, D, E, I>
[src]

Set the base URL that the adapter will use for all requests.

If a base URL is not provided, then all service method URLs are assumed to be absolute.

Set a hyper::Client instance to use with the adapter.

If not supplied, a default instance will be constructed.

Set a new executor for the adapter.

Set a new interceptor for the adapter.

Chain a new interceptor with the current one. They will be called in-order.

Set a new Serializer impl for the adapter.

Set a new Deserializer impl for the adapter.

impl<S, D, E, I> AdapterBuilder<S, D, E, I>
[src]

Convenience method for using JSON serialization.

Enabled with either the rust-serialize feature or the serde-json feature.

impl<S, D, E, I> AdapterBuilder<S, D, E, I> where
    S: Serializer,
    D: Deserializer,
    E: Executor,
    I: Interceptor
[src]

Using the supplied types, complete the adapter.

<E as Executor>::start() will be called here.

Auto Trait Implementations

impl<S, D, E, I> Send for AdapterBuilder<S, D, E, I> where
    D: Send,
    E: Send,
    I: Send,
    S: Send

impl<S, D, E, I> Sync for AdapterBuilder<S, D, E, I> where
    D: Sync,
    E: Sync,
    I: Sync,
    S: Sync