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
sourceimpl<'a> ContentType<'a>
impl<'a> ContentType<'a>
pub fn into_owned(self) -> ContentType<'static>
Trait Implementations
sourceimpl<'a> Debug for ContentType<'a>
impl<'a> Debug for ContentType<'a>
sourceimpl<'a> PartialEq<ContentType<'a>> for ContentType<'a>
impl<'a> PartialEq<ContentType<'a>> for ContentType<'a>
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &ContentType<'a>) -> bool
fn ne(&self, other: &ContentType<'a>) -> bool
This method tests for !=.
impl<'a> Eq for ContentType<'a>
impl<'a> StructuralEq for ContentType<'a>
impl<'a> StructuralPartialEq for ContentType<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more