pub struct CodeMapping { /* private fields */ }Expand description
Implementations§
Source§impl CodeMapping
impl CodeMapping
Sourcepub const fn http_status(&self) -> u16
pub const fn http_status(&self) -> u16
HTTP status code associated with the AppCode.
Sourcepub const fn problem_type(&self) -> &'static str
pub const fn problem_type(&self) -> &'static str
Canonical RFC 7807 problem type URI.
Sourcepub const fn kind(&self) -> AppErrorKind
pub const fn kind(&self) -> AppErrorKind
Canonical error kind for presentation.
Trait Implementations§
Source§impl Clone for CodeMapping
impl Clone for CodeMapping
Source§fn clone(&self) -> CodeMapping
fn clone(&self) -> CodeMapping
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodeMapping
impl Debug for CodeMapping
Source§impl PartialEq for CodeMapping
impl PartialEq for CodeMapping
impl Copy for CodeMapping
impl Eq for CodeMapping
impl StructuralPartialEq for CodeMapping
Auto Trait Implementations§
impl Freeze for CodeMapping
impl RefUnwindSafe for CodeMapping
impl Send for CodeMapping
impl Sync for CodeMapping
impl Unpin for CodeMapping
impl UnwindSafe for CodeMapping
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