pub enum RpcRequestValidationErrorKind {
MethodNotFound {
method_name: String,
},
ParseError {
error_message: String,
},
}Expand description
RpcRequestValidationErrorKind
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"method_name"
],
"properties": {
"method_name": {
"type": "string"
}
}
},
"name": {
"type": "string",
"enum": [
"METHOD_NOT_FOUND"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"error_message"
],
"properties": {
"error_message": {
"type": "string"
}
}
},
"name": {
"type": "string",
"enum": [
"PARSE_ERROR"
]
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for RpcRequestValidationErrorKind
impl Clone for RpcRequestValidationErrorKind
Source§fn clone(&self) -> RpcRequestValidationErrorKind
fn clone(&self) -> RpcRequestValidationErrorKind
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<'de> Deserialize<'de> for RpcRequestValidationErrorKind
impl<'de> Deserialize<'de> for RpcRequestValidationErrorKind
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<&RpcRequestValidationErrorKind> for RpcRequestValidationErrorKind
impl From<&RpcRequestValidationErrorKind> for RpcRequestValidationErrorKind
Source§fn from(value: &RpcRequestValidationErrorKind) -> Self
fn from(value: &RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForGenesisConfigError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForGenesisConfigError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcBlockError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcBlockError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcChunkError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcChunkError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcClientConfigError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcClientConfigError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcGasPriceError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcGasPriceError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcLightClientNextBlockError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcLightClientNextBlockError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcLightClientProofError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcLightClientProofError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcMaintenanceWindowsError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcMaintenanceWindowsError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcNetworkInfoError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcNetworkInfoError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcProtocolConfigError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcProtocolConfigError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcQueryError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcQueryError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcReceiptError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcReceiptError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcSplitStorageInfoError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcSplitStorageInfoError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcStateChangesError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcStateChangesError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcStatusError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcStatusError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcTransactionError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcTransactionError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcValidatorError
impl From<RpcRequestValidationErrorKind> for ErrorWrapperForRpcValidatorError
Source§fn from(value: RpcRequestValidationErrorKind) -> Self
fn from(value: RpcRequestValidationErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcRequestValidationErrorKind
impl RefUnwindSafe for RpcRequestValidationErrorKind
impl Send for RpcRequestValidationErrorKind
impl Sync for RpcRequestValidationErrorKind
impl Unpin for RpcRequestValidationErrorKind
impl UnwindSafe for RpcRequestValidationErrorKind
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