pub struct Code<'a> {
pub message: &'a str,
pub code: u16,
}Expand description
Represents a single code, i.e 200 OK
Fields§
§message: &'a strThe message for the code, i.e OK
code: u16The code itself, i.e 200
Trait Implementations§
impl<'a> Eq for Code<'a>
impl<'a> StructuralPartialEq for Code<'a>
Auto Trait Implementations§
impl<'a> Freeze for Code<'a>
impl<'a> RefUnwindSafe for Code<'a>
impl<'a> Send for Code<'a>
impl<'a> Sync for Code<'a>
impl<'a> Unpin for Code<'a>
impl<'a> UnwindSafe for Code<'a>
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