pub enum RpcViewAccessKeyError {
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,
},
UnknownAccessKey {
block_hash: CryptoHash,
block_height: u64,
public_key: PublicKey,
},
InternalError {
error_message: String,
},
}Expand description
RpcViewAccessKeyError
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_ACCESS_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
UnknownAccessKey
InternalError
Trait Implementations§
Source§impl Clone for RpcViewAccessKeyError
impl Clone for RpcViewAccessKeyError
Source§fn clone(&self) -> RpcViewAccessKeyError
fn clone(&self) -> RpcViewAccessKeyError
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 RpcViewAccessKeyError
impl Debug for RpcViewAccessKeyError
Source§impl<'de> Deserialize<'de> for RpcViewAccessKeyError
impl<'de> Deserialize<'de> for RpcViewAccessKeyError
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 RpcViewAccessKeyError
impl Display for RpcViewAccessKeyError
Source§impl Error for RpcViewAccessKeyError
impl Error for RpcViewAccessKeyError
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<&RpcViewAccessKeyError> for RpcViewAccessKeyError
impl From<&RpcViewAccessKeyError> for RpcViewAccessKeyError
Source§fn from(value: &RpcViewAccessKeyError) -> Self
fn from(value: &RpcViewAccessKeyError) -> Self
Converts to this type from the input type.
Source§impl From<RpcViewAccessKeyError> for ErrorWrapperForRpcViewAccessKeyError
impl From<RpcViewAccessKeyError> for ErrorWrapperForRpcViewAccessKeyError
Source§fn from(value: RpcViewAccessKeyError) -> Self
fn from(value: RpcViewAccessKeyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcViewAccessKeyError
impl RefUnwindSafe for RpcViewAccessKeyError
impl Send for RpcViewAccessKeyError
impl Sync for RpcViewAccessKeyError
impl Unpin for RpcViewAccessKeyError
impl UnsafeUnpin for RpcViewAccessKeyError
impl UnwindSafe for RpcViewAccessKeyError
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