pub struct Error { /* private fields */ }Implementations§
Source§impl Error
impl Error
pub fn new() -> Error
pub fn set_code(&mut self, code: i64)
pub fn with_code(self, code: i64) -> Error
pub fn code(&self) -> Option<&i64>
pub fn reset_code(&mut self)
pub fn set_message(&mut self, message: String)
pub fn with_message(self, message: String) -> Error
pub fn message(&self) -> Option<&String>
pub fn reset_message(&mut self)
pub fn set_fields(&mut self, fields: String)
pub fn with_fields(self, fields: String) -> Error
pub fn fields(&self) -> Option<&String>
pub fn reset_fields(&mut self)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
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
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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