pub struct CallRequest {
pub network_identifier: NetworkIdentifier,
pub method: String,
pub parameters: Value,
}Expand description
CallRequest : CallRequest is the input to the /call endpoint.
Fields§
§network_identifier: NetworkIdentifier§method: StringMethod is some network-specific procedure call. This method could map to a network-specific RPC endpoint, a method in an SDK generated from a smart contract, or some hybrid of the two. The implementation must define all available methods in the Allow object. However, it is up to the caller to determine which parameters to provide when invoking /call.
parameters: ValueParameters is some network-specific argument for a method. It is up to the caller to determine which parameters to provide when invoking /call.
Implementations§
Source§impl CallRequest
impl CallRequest
Sourcepub fn new(
network_identifier: NetworkIdentifier,
method: String,
parameters: Value,
) -> CallRequest
pub fn new( network_identifier: NetworkIdentifier, method: String, parameters: Value, ) -> CallRequest
CallRequest is the input to the /call endpoint.
Trait Implementations§
Source§impl Clone for CallRequest
impl Clone for CallRequest
Source§fn clone(&self) -> CallRequest
fn clone(&self) -> CallRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CallRequest
impl Debug for CallRequest
Source§impl Default for CallRequest
impl Default for CallRequest
Source§fn default() -> CallRequest
fn default() -> CallRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CallRequest
impl<'de> Deserialize<'de> for CallRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CallRequest
impl PartialEq for CallRequest
Source§impl Serialize for CallRequest
impl Serialize for CallRequest
impl Eq for CallRequest
impl StructuralPartialEq for CallRequest
Auto Trait Implementations§
impl Freeze for CallRequest
impl RefUnwindSafe for CallRequest
impl Send for CallRequest
impl Sync for CallRequest
impl Unpin for CallRequest
impl UnwindSafe for CallRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more