pub struct GmailMessagePart {
pub part_id: Option<String>,
pub mime_type: String,
pub headers: Vec<GmailMessageHeader>,
pub body: Option<GmailMessagePartBody>,
pub parts: Vec<GmailMessagePart>,
}Expand description
One part of a Gmail MIME message tree.
Fields§
§part_id: Option<String>Gmail part id.
mime_type: StringMIME type, for example text/plain or text/html.
headers: Vec<GmailMessageHeader>Message headers for this part.
body: Option<GmailMessagePartBody>Body metadata and inline payload.
parts: Vec<GmailMessagePart>Child MIME parts.
Implementations§
Trait Implementations§
Source§impl Clone for GmailMessagePart
impl Clone for GmailMessagePart
Source§fn clone(&self) -> GmailMessagePart
fn clone(&self) -> GmailMessagePart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GmailMessagePart
impl Debug for GmailMessagePart
Source§impl<'de> Deserialize<'de> for GmailMessagePart
impl<'de> Deserialize<'de> for GmailMessagePart
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GmailMessagePart
impl PartialEq for GmailMessagePart
Source§fn eq(&self, other: &GmailMessagePart) -> bool
fn eq(&self, other: &GmailMessagePart) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GmailMessagePart
impl Serialize for GmailMessagePart
impl StructuralPartialEq for GmailMessagePart
Auto Trait Implementations§
impl Freeze for GmailMessagePart
impl RefUnwindSafe for GmailMessagePart
impl Send for GmailMessagePart
impl Sync for GmailMessagePart
impl Unpin for GmailMessagePart
impl UnsafeUnpin for GmailMessagePart
impl UnwindSafe for GmailMessagePart
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