[][src]Struct hail_batch::ClientBuilder

pub struct ClientBuilder { /* fields omitted */ }

Implementations

impl ClientBuilder[src]

pub fn billing_project(self, project: impl Into<String>) -> Self[src]

pub fn service_url(self, url: impl AsRef<str>) -> Result<Self>[src]

Sets the base url used for all api requests.

Default Value

https://batch.hail.is

Notes

The client will set the path when making requests, as such, any path component will be overridden. This must also be a valid http URI, like all URLs used with reqwest.

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

Sets the request timeout for requests issued by the client

Default Value

60 Seconds

pub fn token(self, token: impl Into<String>) -> Self[src]

Sets the Authorization header token

pub fn header<K>(self, name: K, value: HeaderValue) -> Self where
    K: IntoHeaderName
[src]

Sets an arbitrary header to be sent with all requests

pub fn build(self) -> Result<Client>[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<D> OwoColorize for D

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