pub enum RpcViewGasKeyError {
UnknownBlock {
block_reference: BlockReference,
},
InvalidAccount {
block_hash: CryptoHash,
block_height: u64,
requested_account_id: AccountId,
},
UnknownAccount {
block_hash: CryptoHash,
block_height: u64,
requested_account_id: AccountId,
},
UnknownGasKey {
block_hash: CryptoHash,
block_height: u64,
public_key: PublicKey,
},
InternalError {
error_message: String,
},
}Expand description
RpcViewGasKeyError
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_reference"
],
"properties": {
"block_reference": {
"$ref": "#/components/schemas/BlockReference"
}
}
},
"name": {
"type": "string",
"enum": [
"UNKNOWN_BLOCK"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height",
"requested_account_id"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"requested_account_id": {
"$ref": "#/components/schemas/AccountId"
}
}
},
"name": {
"type": "string",
"enum": [
"INVALID_ACCOUNT"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height",
"requested_account_id"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"requested_account_id": {
"$ref": "#/components/schemas/AccountId"
}
}
},
"name": {
"type": "string",
"enum": [
"UNKNOWN_ACCOUNT"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height",
"public_key"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"public_key": {
"$ref": "#/components/schemas/PublicKey"
}
}
},
"name": {
"type": "string",
"enum": [
"UNKNOWN_GAS_KEY"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"error_message"
],
"properties": {
"error_message": {
"type": "string"
}
}
},
"name": {
"type": "string",
"enum": [
"INTERNAL_ERROR"
]
}
}
}
]
}Variants§
UnknownBlock
Fields
§
block_reference: BlockReferenceInvalidAccount
UnknownAccount
UnknownGasKey
InternalError
Trait Implementations§
Source§impl Clone for RpcViewGasKeyError
impl Clone for RpcViewGasKeyError
Source§fn clone(&self) -> RpcViewGasKeyError
fn clone(&self) -> RpcViewGasKeyError
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 RpcViewGasKeyError
impl Debug for RpcViewGasKeyError
Source§impl<'de> Deserialize<'de> for RpcViewGasKeyError
impl<'de> Deserialize<'de> for RpcViewGasKeyError
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 Display for RpcViewGasKeyError
impl Display for RpcViewGasKeyError
Source§impl Error for RpcViewGasKeyError
impl Error for RpcViewGasKeyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<&RpcViewGasKeyError> for RpcViewGasKeyError
impl From<&RpcViewGasKeyError> for RpcViewGasKeyError
Source§fn from(value: &RpcViewGasKeyError) -> Self
fn from(value: &RpcViewGasKeyError) -> Self
Converts to this type from the input type.
Source§impl From<RpcViewGasKeyError> for ErrorWrapperForRpcViewGasKeyError
impl From<RpcViewGasKeyError> for ErrorWrapperForRpcViewGasKeyError
Source§fn from(value: RpcViewGasKeyError) -> Self
fn from(value: RpcViewGasKeyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcViewGasKeyError
impl RefUnwindSafe for RpcViewGasKeyError
impl Send for RpcViewGasKeyError
impl Sync for RpcViewGasKeyError
impl Unpin for RpcViewGasKeyError
impl UnsafeUnpin for RpcViewGasKeyError
impl UnwindSafe for RpcViewGasKeyError
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