Struct gmail::model::MessagesAttachmentsGetResponse
source · pub struct MessagesAttachmentsGetResponse {
pub attachment_id: Option<String>,
pub data: Option<String>,
pub size: Option<i64>,
}
Expand description
The body of a single MIME message part.
Fields§
§attachment_id: Option<String>
When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get
request. When not present, the entire content of the message part body is contained in the data field.
data: Option<String>
The body data of a MIME message part as a base64url encoded string. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
size: Option<i64>
Number of bytes for the message part data (encoding notwithstanding).
Trait Implementations§
source§impl Clone for MessagesAttachmentsGetResponse
impl Clone for MessagesAttachmentsGetResponse
source§fn clone(&self) -> MessagesAttachmentsGetResponse
fn clone(&self) -> MessagesAttachmentsGetResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for MessagesAttachmentsGetResponse
impl Default for MessagesAttachmentsGetResponse
source§fn default() -> MessagesAttachmentsGetResponse
fn default() -> MessagesAttachmentsGetResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MessagesAttachmentsGetResponse
impl<'de> Deserialize<'de> for MessagesAttachmentsGetResponse
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
Auto Trait Implementations§
impl Freeze for MessagesAttachmentsGetResponse
impl RefUnwindSafe for MessagesAttachmentsGetResponse
impl Send for MessagesAttachmentsGetResponse
impl Sync for MessagesAttachmentsGetResponse
impl Unpin for MessagesAttachmentsGetResponse
impl UnwindSafe for MessagesAttachmentsGetResponse
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