[][src]Enum oasis_client::api::GatewayRequest

pub enum GatewayRequest {
    Deploy {
        data: String,
    },
    Execute {
        address: String,
        data: String,
    },
    Poll {
        offset: u64,
        count: u32,
        discard_previous: bool,
    },
}

Variants

Deploy

Used to trigger a service deployment with provided initcode.

Fields of Deploy

data: String

Hex-encoded initcode.

Execute

Used to trigger a service execution with user provided arguments.

Fields of Execute

address: String

Hex-encoded address where the service can be found.

data: String

Hex-encoded data that the user wants to pass to the service.

Poll

Request that allows the user to poll for the status asynchronous responses

Fields of Poll

offset: u64

Offset at which events need to be provided. Events are all ordered with sequence numbers and it is up to the user to specify which events it wants to receive from an offset in the sequence.

count: u32

The maximum number of items the user would prefer to receive in a single response.

discard_previous: bool

If this option is set, the server will discard the events that have a sequence number lower than the Offset.

Trait Implementations

impl Debug for GatewayRequest[src]

impl<'de> Deserialize<'de> for GatewayRequest[src]

impl Serialize for GatewayRequest[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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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>,