Struct imap_proto::types::ContentType
source · 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>
source§fn eq(&self, other: &ContentType<'a>) -> bool
fn eq(&self, other: &ContentType<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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