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.
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