Struct jsonrpsee_types::error::ErrorResponse
source · pub struct ErrorResponse<'a> { /* private fields */ }
Expand description
Implementations§
source§impl<'a> ErrorResponse<'a>
impl<'a> ErrorResponse<'a>
sourcepub fn borrowed(error: ErrorObject<'a>, id: Id<'a>) -> Self
pub fn borrowed(error: ErrorObject<'a>, id: Id<'a>) -> Self
Create a borrowed ErrorResponse
.
sourcepub fn owned(error: ErrorObject<'static>, id: Id<'static>) -> Self
pub fn owned(error: ErrorObject<'static>, id: Id<'static>) -> Self
Create a borrowed ErrorResponse
.
sourcepub fn into_owned(self) -> ErrorResponse<'static>
pub fn into_owned(self) -> ErrorResponse<'static>
Take ownership of the parameters within, if we haven’t already.
sourcepub fn error_object(&self) -> &ErrorObject<'_>
pub fn error_object(&self) -> &ErrorObject<'_>
Get the ErrorObject
of the error response.
Trait Implementations§
source§impl<'a> Debug for ErrorResponse<'a>
impl<'a> Debug for ErrorResponse<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for ErrorResponse<'a>
impl<'de: 'a, 'a> Deserialize<'de> for ErrorResponse<'a>
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