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