[][src]Struct oasis_client::gateway::HttpGateway

pub struct HttpGateway { /* fields omitted */ }

Holds necessary information to make http requests to the gateway.

Example

use oasis_client::Gateway as _;

let url = "https://gateway.devnet.oasiscloud.io";
let api_key = "AAACL7PMQhh3/rxLr9KJpsAJhz5zBlpAB73uwgAt/6BQ4+Bw";
let gateway = oasis_client::HttpGatewayBuilder::new(url)
    .api_key(api_key)
    .build();
let address = gateway.deploy(b"service Wasm bytecode").unwrap();
let response = gateway.rpc(address, b"data").unwrap();

Methods

impl HttpGateway[src]

pub fn new(
    url: String,
    headers: HeaderMap,
    polling_params: PollingParams
) -> Self
[src]

Creates a new HttpGateway pointed at url and with default headers.

Trait Implementations

impl Gateway for HttpGateway[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.

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