pub struct MessagePart {
pub body: Option<MessagePartBody>,
pub filename: Option<String>,
pub headers: Option<Vec<MessagePartHeader>>,
pub mime_type: Option<String>,
pub part_id: Option<String>,
pub parts: Option<Vec<MessagePart>>,
}
Expand description
A single MIME message part.
This type is not used in any activity, and only used as part of another schema.
Fields§
§body: Option<MessagePartBody>
The message part body for this part, which may be empty for container MIME message parts.
filename: Option<String>
The filename of the attachment. Only present if this message part represents an attachment.
headers: Option<Vec<MessagePartHeader>>
List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To
, From
, and Subject
.
mime_type: Option<String>
The MIME type of the message part.
part_id: Option<String>
The immutable ID of the message part.
parts: Option<Vec<MessagePart>>
The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart/*
. For non- container MIME message part types, such as text/plain
, this field is empty. For more information, see RFC 1521.
Trait Implementations§
Source§impl Clone for MessagePart
impl Clone for MessagePart
Source§fn clone(&self) -> MessagePart
fn clone(&self) -> MessagePart
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MessagePart
impl Debug for MessagePart
Source§impl Default for MessagePart
impl Default for MessagePart
Source§fn default() -> MessagePart
fn default() -> MessagePart
Source§impl<'de> Deserialize<'de> for MessagePart
impl<'de> Deserialize<'de> for MessagePart
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for MessagePart
impl Serialize for MessagePart
impl Part for MessagePart
Auto Trait Implementations§
impl Freeze for MessagePart
impl RefUnwindSafe for MessagePart
impl Send for MessagePart
impl Sync for MessagePart
impl Unpin for MessagePart
impl UnwindSafe for MessagePart
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more