pub struct SendAttachment {
pub filename: Option<String>,
pub content_type: Option<String>,
pub content_disposition: Option<String>,
pub content_id: Option<String>,
pub content: Option<String>,
pub url: Option<String>,
}Expand description
An attachment to include on an outgoing message or draft. Supply the bytes
inline as base64 content, or a url for the API to fetch; set content_id
to reference the attachment inline from the HTML body.
Fields§
§filename: Option<String>File name.
content_type: Option<String>MIME content type.
content_disposition: Option<String>Content-Disposition (e.g. inline or attachment).
content_id: Option<String>Content-ID, to reference this attachment inline from the HTML body.
content: Option<String>The attachment bytes, base64-encoded.
url: Option<String>A URL for the API to fetch the attachment from, instead of content.
Trait Implementations§
Source§impl Clone for SendAttachment
impl Clone for SendAttachment
Source§fn clone(&self) -> SendAttachment
fn clone(&self) -> SendAttachment
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 SendAttachment
impl Debug for SendAttachment
Source§impl Default for SendAttachment
impl Default for SendAttachment
Source§fn default() -> SendAttachment
fn default() -> SendAttachment
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SendAttachment
impl RefUnwindSafe for SendAttachment
impl Send for SendAttachment
impl Sync for SendAttachment
impl Unpin for SendAttachment
impl UnsafeUnpin for SendAttachment
impl UnwindSafe for SendAttachment
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