Struct lexoffice::ClientBuilder[][src]

#[must_use]pub struct ClientBuilder<TypedBuilderFields> { /* fields omitted */ }

Builder for Client instances.

See Client::builder() for more info.

Implementations

impl<__http_client, __base_url> ClientBuilder<((), __http_client, __base_url)>[src]

pub fn api_key(
    self,
    api_key: ApiKey
) -> ClientBuilder<((ApiKey,), __http_client, __base_url)>
[src]

impl<__api_key, __base_url> ClientBuilder<(__api_key, (), __base_url)>[src]

pub fn http_client(
    self,
    http_client: Client
) -> ClientBuilder<(__api_key, (Client,), __base_url)>
[src]

impl<__api_key, __http_client> ClientBuilder<(__api_key, __http_client, ())>[src]

pub fn base_url(
    self,
    base_url: Url
) -> ClientBuilder<(__api_key, __http_client, (Url,))>
[src]

impl<__http_client: ClientBuilder_Optional<Client>, __base_url: ClientBuilder_Optional<Url>> ClientBuilder<((ApiKey,), __http_client, __base_url)>[src]

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

Finalise the builder and create its Client instance

Trait Implementations

impl<TypedBuilderFields> Clone for ClientBuilder<TypedBuilderFields> where
    TypedBuilderFields: Clone
[src]

Auto Trait Implementations

impl<TypedBuilderFields> RefUnwindSafe for ClientBuilder<TypedBuilderFields> where
    TypedBuilderFields: RefUnwindSafe

impl<TypedBuilderFields> Send for ClientBuilder<TypedBuilderFields> where
    TypedBuilderFields: Send

impl<TypedBuilderFields> Sync for ClientBuilder<TypedBuilderFields> where
    TypedBuilderFields: Sync

impl<TypedBuilderFields> Unpin for ClientBuilder<TypedBuilderFields> where
    TypedBuilderFields: Unpin

impl<TypedBuilderFields> UnwindSafe for ClientBuilder<TypedBuilderFields> where
    TypedBuilderFields: UnwindSafe

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> 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, 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>,