pub enum RpcViewAccountError {
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,
},
InternalError {
error_message: String,
},
}Expand description
RpcViewAccountError
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": [
"error_message"
],
"properties": {
"error_message": {
"type": "string"
}
}
},
"name": {
"type": "string",
"enum": [
"INTERNAL_ERROR"
]
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for RpcViewAccountError
impl Clone for RpcViewAccountError
Source§fn clone(&self) -> RpcViewAccountError
fn clone(&self) -> RpcViewAccountError
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 RpcViewAccountError
impl Debug for RpcViewAccountError
Source§impl<'de> Deserialize<'de> for RpcViewAccountError
impl<'de> Deserialize<'de> for RpcViewAccountError
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 RpcViewAccountError
impl Display for RpcViewAccountError
Source§impl Error for RpcViewAccountError
impl Error for RpcViewAccountError
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<&RpcViewAccountError> for RpcViewAccountError
impl From<&RpcViewAccountError> for RpcViewAccountError
Source§fn from(value: &RpcViewAccountError) -> Self
fn from(value: &RpcViewAccountError) -> Self
Converts to this type from the input type.
Source§impl From<RpcViewAccountError> for ErrorWrapperForRpcViewAccountError
impl From<RpcViewAccountError> for ErrorWrapperForRpcViewAccountError
Source§fn from(value: RpcViewAccountError) -> Self
fn from(value: RpcViewAccountError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcViewAccountError
impl RefUnwindSafe for RpcViewAccountError
impl Send for RpcViewAccountError
impl Sync for RpcViewAccountError
impl Unpin for RpcViewAccountError
impl UnsafeUnpin for RpcViewAccountError
impl UnwindSafe for RpcViewAccountError
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