Struct thin_jsonrpc_client::response::ErrorObject
source · pub struct ErrorObject<'a> {
pub code: i32,
pub message: Cow<'a, str>,
pub data: Option<Cow<'a, RawValue>>,
}Fields§
§code: i32§message: Cow<'a, str>§data: Option<Cow<'a, RawValue>>Implementations§
source§impl<'a> ErrorObject<'a>
impl<'a> ErrorObject<'a>
sourcepub fn into_owned(self) -> ErrorObject<'static>
pub fn into_owned(self) -> ErrorObject<'static>
Take ownership of a ErrorObject, removing any lifetimes.
Trait Implementations§
source§impl<'a> Clone for ErrorObject<'a>
impl<'a> Clone for ErrorObject<'a>
source§fn clone(&self) -> ErrorObject<'a>
fn clone(&self) -> ErrorObject<'a>
Returns a copy 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<'a> Debug for ErrorObject<'a>
impl<'a> Debug for ErrorObject<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for ErrorObject<'a>
impl<'de: 'a, 'a> Deserialize<'de> for ErrorObject<'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
source§impl<'a> Display for ErrorObject<'a>
impl<'a> Display for ErrorObject<'a>
source§impl From<ErrorObject<'static>> for RequestError
impl From<ErrorObject<'static>> for RequestError
source§fn from(original: ErrorObject<'static>) -> RequestError
fn from(original: ErrorObject<'static>) -> RequestError
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ErrorObject<'a>
impl<'a> Send for ErrorObject<'a>
impl<'a> Sync for ErrorObject<'a>
impl<'a> Unpin for ErrorObject<'a>
impl<'a> UnwindSafe for ErrorObject<'a>
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