pub struct MessagePartBody {
pub attachment_id: Option<String>,
pub data: Option<Vec<u8>>,
pub size: Option<i32>,
}
Expand description
The body of a single MIME message part.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- messages attachments get users (response)
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<Vec<u8>>
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<i32>
Number of bytes for the message part data (encoding notwithstanding).
Trait Implementations§
Source§impl Clone for MessagePartBody
impl Clone for MessagePartBody
Source§fn clone(&self) -> MessagePartBody
fn clone(&self) -> MessagePartBody
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MessagePartBody
impl Debug for MessagePartBody
Source§impl Default for MessagePartBody
impl Default for MessagePartBody
Source§fn default() -> MessagePartBody
fn default() -> MessagePartBody
Source§impl<'de> Deserialize<'de> for MessagePartBody
impl<'de> Deserialize<'de> for MessagePartBody
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 MessagePartBody
impl Serialize for MessagePartBody
impl ResponseResult for MessagePartBody
Auto Trait Implementations§
impl Freeze for MessagePartBody
impl RefUnwindSafe for MessagePartBody
impl Send for MessagePartBody
impl Sync for MessagePartBody
impl Unpin for MessagePartBody
impl UnwindSafe for MessagePartBody
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