[][src]Struct fiscalidade::ClientBuilder

pub struct ClientBuilder { /* fields omitted */ }

Construtor de clients HTTP usando build pattern.

Methods

impl ClientBuilder[src]

pub fn new() -> Self[src]

Cria uma nova instância do builder de client HTTP.

pub fn set_pkcs12(self, pkcs12: Pkcs12Certificate) -> Self[src]

Aplica certificado PKCS12 ao client HTTP criado.

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

Aplica tempo máximo de timeout para conexão do client HTTP criado.

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

Aplica tempo máximo de timeout para transmissão de dados do client HTTP criado.

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

Torna o client HTTP criado mais verboso, i.e. emite mais informações de log.

pub fn build(self) -> ClientBuilderResult[src]

Constrói novo client HTTP pré-configurado.

Trait Implementations

impl Debug for ClientBuilder[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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.