pub enum RpcCallFunctionRequest {
Variant0 {
account_id: AccountId,
args_base64: FunctionArgs,
block_id: BlockId,
method_name: String,
},
Variant1 {
account_id: AccountId,
args_base64: FunctionArgs,
finality: Finality,
method_name: String,
},
Variant2 {
account_id: AccountId,
args_base64: FunctionArgs,
method_name: String,
sync_checkpoint: SyncCheckpoint,
},
}Expand description
RpcCallFunctionRequest
JSON schema
{
"title": "RpcCallFunctionRequest",
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
}
],
"required": [
"account_id",
"args_base64",
"method_name"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"args_base64": {
"$ref": "#/components/schemas/FunctionArgs"
},
"method_name": {
"type": "string"
}
}
}Variants§
Trait Implementations§
Source§impl Clone for RpcCallFunctionRequest
impl Clone for RpcCallFunctionRequest
Source§fn clone(&self) -> RpcCallFunctionRequest
fn clone(&self) -> RpcCallFunctionRequest
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 RpcCallFunctionRequest
impl Debug for RpcCallFunctionRequest
Source§impl<'de> Deserialize<'de> for RpcCallFunctionRequest
impl<'de> Deserialize<'de> for RpcCallFunctionRequest
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 From<&RpcCallFunctionRequest> for RpcCallFunctionRequest
impl From<&RpcCallFunctionRequest> for RpcCallFunctionRequest
Source§fn from(value: &RpcCallFunctionRequest) -> Self
fn from(value: &RpcCallFunctionRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcCallFunctionRequest
impl RefUnwindSafe for RpcCallFunctionRequest
impl Send for RpcCallFunctionRequest
impl Sync for RpcCallFunctionRequest
impl Unpin for RpcCallFunctionRequest
impl UnsafeUnpin for RpcCallFunctionRequest
impl UnwindSafe for RpcCallFunctionRequest
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