pub struct TwoFieldsTuple {
pub code: u16,
pub name: &'static str,
}Expand description
SimpleTuple represents a simplified view of HttpCode with two fields.
Fields§
§code: u16§name: &'static strImplementations§
Source§impl TwoFieldsTuple
impl TwoFieldsTuple
Sourcepub fn from_http_code(http_code: &HttpCode) -> Self
pub fn from_http_code(http_code: &HttpCode) -> Self
Create a new TwoFieldsTuple from a HttpCode.
Trait Implementations§
Source§impl Debug for TwoFieldsTuple
impl Debug for TwoFieldsTuple
Auto Trait Implementations§
impl Freeze for TwoFieldsTuple
impl RefUnwindSafe for TwoFieldsTuple
impl Send for TwoFieldsTuple
impl Sync for TwoFieldsTuple
impl Unpin for TwoFieldsTuple
impl UnwindSafe for TwoFieldsTuple
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