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: String
Method 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: Value
Parameters 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§const fn clone_from(&mut self, source: &Self)
const 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<CallRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallRequest, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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