pub struct GmailMessagePayload {
pub part_id: Option<String>,
pub mime_type: Option<String>,
pub body: Option<GmailMessagePartBody>,
pub filename: String,
pub headers: Vec<GmailMessageHeader>,
pub parts: Vec<GmailMessagePayload>,
}Expand description
A single MIME part of a Gmail message.
The top-level part is exposed as the payload of a GmailMessage;
multipart containers nest their children in parts.
Fields§
§part_id: Option<String>The immutable id of the message part.
mime_type: Option<String>The MIME type of the part.
body: Option<GmailMessagePartBody>The body of the part, which may be empty for container MIME parts.
filename: StringThe filename of the attachment; empty when the part is not an attachment.
headers: Vec<GmailMessageHeader>The headers of the part, such as To, From or Subject.
parts: Vec<GmailMessagePayload>The child parts of a container MIME part.
Implementations§
Trait Implementations§
Source§impl Clone for GmailMessagePayload
impl Clone for GmailMessagePayload
Source§fn clone(&self) -> GmailMessagePayload
fn clone(&self) -> GmailMessagePayload
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 GmailMessagePayload
impl Debug for GmailMessagePayload
Source§impl Default for GmailMessagePayload
impl Default for GmailMessagePayload
Source§fn default() -> GmailMessagePayload
fn default() -> GmailMessagePayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GmailMessagePayload
impl<'de> Deserialize<'de> for GmailMessagePayload
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
impl Eq for GmailMessagePayload
Source§impl JsonSchema for GmailMessagePayload
impl JsonSchema for GmailMessagePayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for GmailMessagePayload
impl PartialEq for GmailMessagePayload
Source§impl Serialize for GmailMessagePayload
impl Serialize for GmailMessagePayload
impl StructuralPartialEq for GmailMessagePayload
Auto Trait Implementations§
impl Freeze for GmailMessagePayload
impl RefUnwindSafe for GmailMessagePayload
impl Send for GmailMessagePayload
impl Sync for GmailMessagePayload
impl Unpin for GmailMessagePayload
impl UnsafeUnpin for GmailMessagePayload
impl UnwindSafe for GmailMessagePayload
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