Struct ErrorCodeInfo
pub struct ErrorCodeInfo<'a> {
pub code: i32,
pub description: &'a str,
}
Expand description
Information about a documented error code.
Fields§
§code: i32
The code value.
description: &'a str
Short description about what this code indicates.
Trait Implementations§
§impl<'a> Debug for ErrorCodeInfo<'a>
impl<'a> Debug for ErrorCodeInfo<'a>
§impl<'a> PartialEq for ErrorCodeInfo<'a>
impl<'a> PartialEq for ErrorCodeInfo<'a>
§impl<'a> Serialize for ErrorCodeInfo<'a>
impl<'a> Serialize for ErrorCodeInfo<'a>
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> Eq for ErrorCodeInfo<'a>
impl<'a> StructuralPartialEq for ErrorCodeInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for ErrorCodeInfo<'a>
impl<'a> RefUnwindSafe for ErrorCodeInfo<'a>
impl<'a> Send for ErrorCodeInfo<'a>
impl<'a> Sync for ErrorCodeInfo<'a>
impl<'a> Unpin for ErrorCodeInfo<'a>
impl<'a> UnwindSafe for ErrorCodeInfo<'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