Enum imap_proto::types::BodyStructure
source · pub enum BodyStructure<'a> {
Basic {
common: BodyContentCommon<'a>,
other: BodyContentSinglePart<'a>,
extension: Option<BodyExtension<'a>>,
},
Text {
common: BodyContentCommon<'a>,
other: BodyContentSinglePart<'a>,
lines: u32,
extension: Option<BodyExtension<'a>>,
},
Message {
common: BodyContentCommon<'a>,
other: BodyContentSinglePart<'a>,
envelope: Envelope<'a>,
body: Box<BodyStructure<'a>>,
lines: u32,
extension: Option<BodyExtension<'a>>,
},
Multipart {
common: BodyContentCommon<'a>,
bodies: Vec<BodyStructure<'a>>,
extension: Option<BodyExtension<'a>>,
},
}
Variants§
Basic
Fields
§
common: BodyContentCommon<'a>
§
other: BodyContentSinglePart<'a>
§
extension: Option<BodyExtension<'a>>
Text
Fields
§
common: BodyContentCommon<'a>
§
other: BodyContentSinglePart<'a>
§
extension: Option<BodyExtension<'a>>
Message
Fields
§
common: BodyContentCommon<'a>
§
other: BodyContentSinglePart<'a>
§
body: Box<BodyStructure<'a>>
§
extension: Option<BodyExtension<'a>>
Multipart
Fields
§
common: BodyContentCommon<'a>
§
bodies: Vec<BodyStructure<'a>>
§
extension: Option<BodyExtension<'a>>
Implementations§
source§impl<'a> BodyStructure<'a>
impl<'a> BodyStructure<'a>
pub fn into_owned(self) -> BodyStructure<'static>
Trait Implementations§
source§impl<'a> Debug for BodyStructure<'a>
impl<'a> Debug for BodyStructure<'a>
source§impl<'a> PartialEq for BodyStructure<'a>
impl<'a> PartialEq for BodyStructure<'a>
source§fn eq(&self, other: &BodyStructure<'a>) -> bool
fn eq(&self, other: &BodyStructure<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for BodyStructure<'a>
impl<'a> StructuralPartialEq for BodyStructure<'a>
Auto Trait Implementations§
impl<'a> Freeze for BodyStructure<'a>
impl<'a> RefUnwindSafe for BodyStructure<'a>
impl<'a> Send for BodyStructure<'a>
impl<'a> Sync for BodyStructure<'a>
impl<'a> Unpin for BodyStructure<'a>
impl<'a> UnwindSafe for BodyStructure<'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