pub enum RpcViewStateError {
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,
},
TooLargeContractState {
block_hash: CryptoHash,
block_height: u64,
contract_account_id: AccountId,
},
InternalError {
error_message: String,
},
}Expand description
RpcViewStateError
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",
"contract_account_id"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"contract_account_id": {
"$ref": "#/components/schemas/AccountId"
}
}
},
"name": {
"type": "string",
"enum": [
"TOO_LARGE_CONTRACT_STATE"
]
}
}
},
{
"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
TooLargeContractState
InternalError
Trait Implementations§
Source§impl Clone for RpcViewStateError
impl Clone for RpcViewStateError
Source§fn clone(&self) -> RpcViewStateError
fn clone(&self) -> RpcViewStateError
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 RpcViewStateError
impl Debug for RpcViewStateError
Source§impl<'de> Deserialize<'de> for RpcViewStateError
impl<'de> Deserialize<'de> for RpcViewStateError
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 RpcViewStateError
impl Display for RpcViewStateError
Source§impl Error for RpcViewStateError
impl Error for RpcViewStateError
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<&RpcViewStateError> for RpcViewStateError
impl From<&RpcViewStateError> for RpcViewStateError
Source§fn from(value: &RpcViewStateError) -> Self
fn from(value: &RpcViewStateError) -> Self
Converts to this type from the input type.
Source§impl From<RpcViewStateError> for ErrorWrapperForRpcViewStateError
impl From<RpcViewStateError> for ErrorWrapperForRpcViewStateError
Source§fn from(value: RpcViewStateError) -> Self
fn from(value: RpcViewStateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcViewStateError
impl RefUnwindSafe for RpcViewStateError
impl Send for RpcViewStateError
impl Sync for RpcViewStateError
impl Unpin for RpcViewStateError
impl UnsafeUnpin for RpcViewStateError
impl UnwindSafe for RpcViewStateError
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