[][src]Struct oasis_client::gateway::HttpGatewayBuilder

pub struct HttpGatewayBuilder { /* fields omitted */ }

Methods

impl HttpGatewayBuilder[src]

pub fn new(url: impl AsRef<str>) -> Self[src]

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

Set the api key expected by the Oasis Developer gateway.

pub fn header(
    self,
    name: impl AsRef<[u8]>,
    value: impl AsRef<[u8]>
) -> Result<Self>
[src]

Append the value of the named header.

pub fn headers(self, headers: HeaderMap) -> Self[src]

Assign the provided headers as the defaults for all requests made by the HttpGateway.

pub fn polling_params(self, params: PollingParams) -> Self[src]

Set the polling parameters for the HttpGateway.

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

Creates a new HttpGateway instance that is configured with headers expected by the Oasis Developer gateway.

Trait Implementations

impl Clone for HttpGatewayBuilder[src]

impl Debug for HttpGatewayBuilder[src]

impl Default for HttpGatewayBuilder[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> 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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

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