#[non_exhaustive]pub struct ErrorDetail {
pub code: Option<String>,
pub message: Option<String>,
}Expand description
What an error envelope says, reduced to what is safe to show.
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: Option<String>The provider’s code when it is a short identifier, otherwise its
type under the same condition.
message: Option<String>The provider’s message, on one line and at most 200 characters
(longer text ends with an ellipsis). None when absent or empty.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorDetail
impl Clone for ErrorDetail
Source§impl Debug for ErrorDetail
impl Debug for ErrorDetail
Source§impl Default for ErrorDetail
impl Default for ErrorDetail
impl Eq for ErrorDetail
Source§impl PartialEq for ErrorDetail
impl PartialEq for ErrorDetail
impl StructuralPartialEq for ErrorDetail
Auto Trait Implementations§
impl Freeze for ErrorDetail
impl RefUnwindSafe for ErrorDetail
impl Send for ErrorDetail
impl Sync for ErrorDetail
impl Unpin for ErrorDetail
impl UnsafeUnpin for ErrorDetail
impl UnwindSafe for ErrorDetail
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