pub struct GmailMessagePartBody {
pub attachment_id: Option<String>,
pub size: u32,
pub data: Option<String>,
}Expand description
The body of a single MIME part of a Gmail message.
Fields§
§attachment_id: Option<String>The id of an external attachment, retrievable via a separate
users.messages.attachments.get request.
size: u32The number of bytes of the message part data.
data: Option<String>The body data as a base64url-encoded string; absent when the data lives in an external attachment.
Trait Implementations§
Source§impl Clone for GmailMessagePartBody
impl Clone for GmailMessagePartBody
Source§fn clone(&self) -> GmailMessagePartBody
fn clone(&self) -> GmailMessagePartBody
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 GmailMessagePartBody
impl Debug for GmailMessagePartBody
Source§impl Default for GmailMessagePartBody
impl Default for GmailMessagePartBody
Source§fn default() -> GmailMessagePartBody
fn default() -> GmailMessagePartBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GmailMessagePartBody
impl<'de> Deserialize<'de> for GmailMessagePartBody
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 GmailMessagePartBody
Source§impl JsonSchema for GmailMessagePartBody
impl JsonSchema for GmailMessagePartBody
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 GmailMessagePartBody
impl PartialEq for GmailMessagePartBody
Source§impl Serialize for GmailMessagePartBody
impl Serialize for GmailMessagePartBody
impl StructuralPartialEq for GmailMessagePartBody
Auto Trait Implementations§
impl Freeze for GmailMessagePartBody
impl RefUnwindSafe for GmailMessagePartBody
impl Send for GmailMessagePartBody
impl Sync for GmailMessagePartBody
impl Unpin for GmailMessagePartBody
impl UnsafeUnpin for GmailMessagePartBody
impl UnwindSafe for GmailMessagePartBody
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