pub struct Header {
pub name: HeaderName,
pub value: String,
}Expand description
This represents one line of the headers portion of an Internet message. It consists of a case-insensitive name and a value, which may contain parts separated by commas.
Fields§
§name: HeaderNameThis is the name of the header. It is case-insensitive.
value: StringThis is the value of the header. When parsed from text, or in text generated from it, this string may span (or fold across) multiple lines. Also, in some contexts, it may contain multiple values, in which case the values are commonly separated by commas.
Trait Implementations§
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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