pub struct AttachmentInput {
pub filename: String,
pub content_type: String,
pub data: Vec<u8>,
pub size: Option<i64>,
}Expand description
AttachmentInput : Inline attachment payload for send, reply, and draft requests. data is the raw bytes base64-encoded by the JSON encoder.
Fields§
§filename: String§content_type: String§data: Vec<u8>Base64-encoded bytes.
size: Option<i64>Implementations§
Trait Implementations§
Source§impl Clone for AttachmentInput
impl Clone for AttachmentInput
Source§fn clone(&self) -> AttachmentInput
fn clone(&self) -> AttachmentInput
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 AttachmentInput
impl Debug for AttachmentInput
Source§impl Default for AttachmentInput
impl Default for AttachmentInput
Source§fn default() -> AttachmentInput
fn default() -> AttachmentInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AttachmentInput
impl<'de> Deserialize<'de> for AttachmentInput
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 AttachmentInput
impl PartialEq for AttachmentInput
Source§fn eq(&self, other: &AttachmentInput) -> bool
fn eq(&self, other: &AttachmentInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttachmentInput
impl Serialize for AttachmentInput
impl StructuralPartialEq for AttachmentInput
Auto Trait Implementations§
impl Freeze for AttachmentInput
impl RefUnwindSafe for AttachmentInput
impl Send for AttachmentInput
impl Sync for AttachmentInput
impl Unpin for AttachmentInput
impl UnsafeUnpin for AttachmentInput
impl UnwindSafe for AttachmentInput
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