[][src]Struct libra_json_rpc_client::JsonRpcBatch

pub struct JsonRpcBatch {
    pub requests: Vec<(String, Vec<Value>)>,
}

Fields

requests: Vec<(String, Vec<Value>)>

Implementations

impl JsonRpcBatch[src]

pub fn new() -> Self[src]

pub fn json_request(&self) -> Value[src]

pub fn add_request(&mut self, method_name: String, parameters: Vec<Value>)[src]

pub fn add_submit_request(
    &mut self,
    transaction: SignedTransaction
) -> Result<()>
[src]

pub fn add_get_account_request(&mut self, address: AccountAddress)[src]

pub fn add_get_metadata_request(&mut self, version: Option<u64>)[src]

pub fn add_get_currencies_info(&mut self)[src]

pub fn add_get_transactions_request(
    &mut self,
    start_version: u64,
    limit: u64,
    include_events: bool
)
[src]

pub fn add_get_account_transaction_request(
    &mut self,
    account: AccountAddress,
    sequence: u64,
    include_events: bool
)
[src]

pub fn add_get_account_transactions_request(
    &mut self,
    account: AccountAddress,
    start: u64,
    limit: u64,
    include_events: bool
)
[src]

pub fn add_get_events_request(
    &mut self,
    event_key: String,
    start: u64,
    limit: u64
)
[src]

pub fn add_get_state_proof_request(&mut self, known_version: u64)[src]

pub fn add_get_account_state_with_proof_request(
    &mut self,
    account: AccountAddress,
    version: Option<u64>,
    ledger_version: Option<u64>
)
[src]

pub fn add_get_network_status_request(&mut self)[src]

Trait Implementations

impl Clone for JsonRpcBatch[src]

impl Default for JsonRpcBatch[src]

Auto Trait Implementations

impl RefUnwindSafe for JsonRpcBatch

impl Send for JsonRpcBatch

impl Sync for JsonRpcBatch

impl Unpin for JsonRpcBatch

impl UnwindSafe for JsonRpcBatch

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> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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