pub struct Attachment { /* private fields */ }Implementations§
Source§impl Attachment
impl Attachment
pub fn base64<T>(self, value: T) -> Self
pub fn content<T>(self, value: T) -> Self
pub fn content_type<T>(self, value: T) -> Self
pub fn data<T>(self, value: T) -> Self
pub fn detail<T>(self, value: T) -> Self
pub fn filename<T>(self, value: T) -> Self
pub fn metadata<T>(self, value: T) -> Self
pub fn mime_type<T>(self, value: T) -> Self
pub fn name<T>(self, value: T) -> Self
pub fn text<T>(self, value: T) -> Self
pub fn type_<T>(self, value: T) -> Self
pub fn uri<T>(self, value: T) -> Self
pub fn url<T>(self, value: T) -> Self
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
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 Attachment
impl Debug for Attachment
Source§impl Default for Attachment
impl Default for Attachment
Source§impl From<Attachment> for Attachment
impl From<Attachment> for Attachment
Source§fn from(value: Attachment) -> Self
fn from(value: Attachment) -> Self
Converts to this type from the input type.
Source§impl TryFrom<Attachment> for Attachment
impl TryFrom<Attachment> for Attachment
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: Attachment) -> Result<Self, ConversionError>
fn try_from(value: Attachment) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnsafeUnpin for Attachment
impl UnwindSafe for Attachment
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