pub struct JsonRPCError {
pub code: i32,
pub message: String,
pub data: Option<Value>,
}Fields§
§code: i32§message: String§data: Option<Value>Trait Implementations§
Source§impl Clone for JsonRPCError
impl Clone for JsonRPCError
Source§fn clone(&self) -> JsonRPCError
fn clone(&self) -> JsonRPCError
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 JsonRPCError
impl Debug for JsonRPCError
Source§impl From<Error> for JsonRPCError
impl From<Error> for JsonRPCError
Source§impl From<ExecError> for JsonRPCError
impl From<ExecError> for JsonRPCError
Source§impl NamedType for JsonRPCError
impl NamedType for JsonRPCError
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
this is equivalent to Type::inline but returns a NamedDataType instead.
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
this is equivalent to [Type::definition] but returns a NamedDataType instead.
Source§impl Serialize for JsonRPCError
impl Serialize for JsonRPCError
Source§impl Type for JsonRPCError
impl Type for JsonRPCError
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Returns the definition of a type using the provided generics. Read more
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
Generates a datatype corresponding to a reference to this type,
as determined by its category. Getting a reference to a type implies that
it should belong in the type map (since it has to be referenced from somewhere),
so the output of
definition will be put into the type map.impl Flatten for JsonRPCError
Auto Trait Implementations§
impl Freeze for JsonRPCError
impl RefUnwindSafe for JsonRPCError
impl Send for JsonRPCError
impl Sync for JsonRPCError
impl Unpin for JsonRPCError
impl UnwindSafe for JsonRPCError
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