pub struct LSPSResponseError {
pub code: i32,
pub message: String,
pub data: Option<String>,
}Expand description
An error returned in response to an JSON-RPC request.
Please refer to the JSON-RPC 2.0 specification for more information.
Fields§
§code: i32A number that indicates the error type that occurred.
message: StringA string providing a short description of the error.
data: Option<String>A primitive or structured value that contains additional information about the error.
Trait Implementations§
Source§impl Clone for LSPSResponseError
impl Clone for LSPSResponseError
Source§fn clone(&self) -> LSPSResponseError
fn clone(&self) -> LSPSResponseError
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 LSPSResponseError
impl Debug for LSPSResponseError
Source§impl<'de> Deserialize<'de> for LSPSResponseError
impl<'de> Deserialize<'de> for LSPSResponseError
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<LSPS5Error> for LSPSResponseError
impl From<LSPS5Error> for LSPSResponseError
Source§fn from(e: LSPS5Error) -> Self
fn from(e: LSPS5Error) -> Self
Converts to this type from the input type.
Source§impl From<LSPS5ProtocolError> for LSPSResponseError
impl From<LSPS5ProtocolError> for LSPSResponseError
Source§fn from(e: LSPS5ProtocolError) -> Self
fn from(e: LSPS5ProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<LSPSResponseError> for LSPS5Error
impl From<LSPSResponseError> for LSPS5Error
Source§fn from(err: LSPSResponseError) -> Self
fn from(err: LSPSResponseError) -> Self
Converts to this type from the input type.
Source§impl From<LSPSResponseError> for LSPS5ProtocolError
impl From<LSPSResponseError> for LSPS5ProtocolError
Source§fn from(err: LSPSResponseError) -> Self
fn from(err: LSPSResponseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LSPSResponseError
impl PartialEq for LSPSResponseError
Source§impl Serialize for LSPSResponseError
impl Serialize for LSPSResponseError
impl Eq for LSPSResponseError
impl StructuralPartialEq for LSPSResponseError
Auto Trait Implementations§
impl Freeze for LSPSResponseError
impl RefUnwindSafe for LSPSResponseError
impl Send for LSPSResponseError
impl Sync for LSPSResponseError
impl Unpin for LSPSResponseError
impl UnwindSafe for LSPSResponseError
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