pub struct ContentDisposition(/* private fields */);
Expand description
Content-Disposition
of an attachment
Defined in RFC2183
Implementations§
Source§impl ContentDisposition
impl ContentDisposition
Sourcepub fn inline_with_name(file_name: &str) -> Self
pub fn inline_with_name(file_name: &str) -> Self
An attachment which should be displayed inline into the message, but that also species the filename in case it were to be downloaded
Sourcepub fn attachment(file_name: &str) -> Self
pub fn attachment(file_name: &str) -> Self
An attachment which is separate from the body of the message, and can be downloaded separately
Trait Implementations§
Source§impl Clone for ContentDisposition
impl Clone for ContentDisposition
Source§fn clone(&self) -> ContentDisposition
fn clone(&self) -> ContentDisposition
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 Debug for ContentDisposition
impl Debug for ContentDisposition
Source§impl Header for ContentDisposition
impl Header for ContentDisposition
Source§impl PartialEq for ContentDisposition
impl PartialEq for ContentDisposition
impl StructuralPartialEq for ContentDisposition
Auto Trait Implementations§
impl Freeze for ContentDisposition
impl RefUnwindSafe for ContentDisposition
impl Send for ContentDisposition
impl Sync for ContentDisposition
impl Unpin for ContentDisposition
impl UnwindSafe for ContentDisposition
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