pub struct AttachmentBuilder { /* private fields */ }Expand description
Builder for creating attachments.
Implementations§
Source§impl AttachmentBuilder
impl AttachmentBuilder
Sourcepub fn content_type(self, content_type: impl Into<String>) -> Self
pub fn content_type(self, content_type: impl Into<String>) -> Self
Set the content type.
Sourcepub fn content_id(self, content_id: impl Into<String>) -> Self
pub fn content_id(self, content_id: impl Into<String>) -> Self
Set the content ID for inline attachments.
Sourcepub fn build(self) -> Attachment
pub fn build(self) -> Attachment
Trait Implementations§
Source§impl Clone for AttachmentBuilder
impl Clone for AttachmentBuilder
Source§fn clone(&self) -> AttachmentBuilder
fn clone(&self) -> AttachmentBuilder
Returns a duplicate 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 Debug for AttachmentBuilder
impl Debug for AttachmentBuilder
Source§impl Default for AttachmentBuilder
impl Default for AttachmentBuilder
Source§fn default() -> AttachmentBuilder
fn default() -> AttachmentBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AttachmentBuilder
impl RefUnwindSafe for AttachmentBuilder
impl Send for AttachmentBuilder
impl Sync for AttachmentBuilder
impl Unpin for AttachmentBuilder
impl UnwindSafe for AttachmentBuilder
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