pub enum AttachmentContent {
Base64 {
mime_type: String,
data: String,
},
Url {
url: String,
},
Bytes {
mime_type: String,
data: Vec<u8>,
},
}Expand description
Content of an attachment
Variants§
Trait Implementations§
Source§impl Clone for AttachmentContent
impl Clone for AttachmentContent
Source§fn clone(&self) -> AttachmentContent
fn clone(&self) -> AttachmentContent
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 AttachmentContent
impl Debug for AttachmentContent
Source§impl<'de> Deserialize<'de> for AttachmentContent
impl<'de> Deserialize<'de> for AttachmentContent
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
Auto Trait Implementations§
impl Freeze for AttachmentContent
impl RefUnwindSafe for AttachmentContent
impl Send for AttachmentContent
impl Sync for AttachmentContent
impl Unpin for AttachmentContent
impl UnwindSafe for AttachmentContent
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