pub struct StatusLine {
pub code: u16,
pub reason_phrase: String,
pub extensions: HashMap<String, Value>,
}Expand description
状态行
Fields§
§code: u16状态码
reason_phrase: String原因短语
extensions: HashMap<String, Value>扩展字段
Trait Implementations§
Source§impl Clone for StatusLine
impl Clone for StatusLine
Source§fn clone(&self) -> StatusLine
fn clone(&self) -> StatusLine
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 StatusLine
impl Debug for StatusLine
Source§impl Default for StatusLine
impl Default for StatusLine
Source§impl<'de> Deserialize<'de> for StatusLine
impl<'de> Deserialize<'de> for StatusLine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StatusLine
impl RefUnwindSafe for StatusLine
impl Send for StatusLine
impl Sync for StatusLine
impl Unpin for StatusLine
impl UnsafeUnpin for StatusLine
impl UnwindSafe for StatusLine
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