pub struct ContentType<'a> {
pub ty: Cow<'a, str>,
pub subtype: Cow<'a, str>,
pub params: BodyParams<'a>,
}
Fields§
§ty: Cow<'a, str>
§subtype: Cow<'a, str>
§params: BodyParams<'a>
Implementations§
Source§impl<'a> ContentType<'a>
impl<'a> ContentType<'a>
pub fn into_owned(self) -> ContentType<'static>
Trait Implementations§
Source§impl<'a> Debug for ContentType<'a>
impl<'a> Debug for ContentType<'a>
Source§impl<'a> PartialEq for ContentType<'a>
impl<'a> PartialEq for ContentType<'a>
impl<'a> Eq for ContentType<'a>
impl<'a> StructuralPartialEq for ContentType<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContentType<'a>
impl<'a> RefUnwindSafe for ContentType<'a>
impl<'a> Send for ContentType<'a>
impl<'a> Sync for ContentType<'a>
impl<'a> Unpin for ContentType<'a>
impl<'a> UnwindSafe for ContentType<'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