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§const fn clone_from(&mut self, source: &Self)
const 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<RpcRequestValidationErrorKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcRequestValidationErrorKind, <__D as Deserializer<'de>>::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) -> RpcRequestValidationErrorKind
fn from(value: &RpcRequestValidationErrorKind) -> RpcRequestValidationErrorKind
Converts to this type from the input type.
Source§impl Serialize for RpcRequestValidationErrorKind
impl Serialize for RpcRequestValidationErrorKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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