#[non_exhaustive]pub struct ServerError {
pub code: String,
pub message: String,
pub details: Value,
}Expand description
An error message from the server.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: StringRATE_LIMITED, SIGNATURE_REFUSED, the application’s own codes…
message: String§details: ValueThe whole payload.
Trait Implementations§
Source§impl Clone for ServerError
impl Clone for ServerError
Source§impl Debug for ServerError
impl Debug for ServerError
Source§impl PartialEq for ServerError
impl PartialEq for ServerError
impl StructuralPartialEq for ServerError
Auto Trait Implementations§
impl Forget for ServerError
impl Freeze for ServerError
impl Move for ServerError
impl RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnsafeUnpin for ServerError
impl UnwindSafe for ServerError
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