Struct MimeVersion
pub struct MimeVersion(/* private fields */);Expand description
Lightweight MIME-Version header wrapper.
Implementations§
§impl MimeVersion
impl MimeVersion
pub fn new(value: impl AsRef<str>) -> Result<MimeVersion, HeaderParseError>
pub fn new(value: impl AsRef<str>) -> Result<MimeVersion, HeaderParseError>
Creates a typed header wrapper.
pub const fn value(&self) -> &HeaderValue
pub const fn value(&self) -> &HeaderValue
Returns the header value.
pub fn field(&self) -> HeaderField
pub fn field(&self) -> HeaderField
Converts this wrapper into a header field.
Trait Implementations§
§impl Clone for MimeVersion
impl Clone for MimeVersion
§fn clone(&self) -> MimeVersion
fn clone(&self) -> MimeVersion
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 more§impl Debug for MimeVersion
impl Debug for MimeVersion
§impl Display for MimeVersion
impl Display for MimeVersion
§impl Hash for MimeVersion
impl Hash for MimeVersion
§impl Ord for MimeVersion
impl Ord for MimeVersion
§impl PartialEq for MimeVersion
impl PartialEq for MimeVersion
§impl PartialOrd for MimeVersion
impl PartialOrd for MimeVersion
impl Eq for MimeVersion
impl StructuralPartialEq for MimeVersion
Auto Trait Implementations§
impl Freeze for MimeVersion
impl RefUnwindSafe for MimeVersion
impl Send for MimeVersion
impl Sync for MimeVersion
impl Unpin for MimeVersion
impl UnsafeUnpin for MimeVersion
impl UnwindSafe for MimeVersion
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