#[non_exhaustive]pub enum HttpErrorMappingError {
BlankKey {
table: &'static str,
},
StatusOutOfDomain {
table: &'static str,
status: u16,
},
}Expand description
Typed load-time validation failure for an HttpErrorMapping.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BlankKey
A table key is empty or whitespace-only.
StatusOutOfDomain
A table value falls outside the client/server error domain.
Trait Implementations§
Source§impl Clone for HttpErrorMappingError
impl Clone for HttpErrorMappingError
Source§impl Debug for HttpErrorMappingError
impl Debug for HttpErrorMappingError
Source§impl Display for HttpErrorMappingError
impl Display for HttpErrorMappingError
impl Eq for HttpErrorMappingError
Source§impl Error for HttpErrorMappingError
impl Error for HttpErrorMappingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for HttpErrorMappingError
impl PartialEq for HttpErrorMappingError
impl StructuralPartialEq for HttpErrorMappingError
Auto Trait Implementations§
impl Forget for HttpErrorMappingError
impl Freeze for HttpErrorMappingError
impl Move for HttpErrorMappingError
impl RefUnwindSafe for HttpErrorMappingError
impl Send for HttpErrorMappingError
impl Sync for HttpErrorMappingError
impl Unpin for HttpErrorMappingError
impl UnsafeUnpin for HttpErrorMappingError
impl UnwindSafe for HttpErrorMappingError
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