pub enum AttachmentContent {
Inline {
data: Vec<u8>,
},
Blob {
descriptor: BlobDescriptor,
},
}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 (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 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<AttachmentContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AttachmentContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AttachmentContent
impl PartialEq for AttachmentContent
Source§fn eq(&self, other: &AttachmentContent) -> bool
fn eq(&self, other: &AttachmentContent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttachmentContent
impl Serialize for AttachmentContent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for AttachmentContent
impl StructuralPartialEq for AttachmentContent
Auto Trait Implementations§
impl Freeze for AttachmentContent
impl RefUnwindSafe for AttachmentContent
impl Send for AttachmentContent
impl Sync for AttachmentContent
impl Unpin for AttachmentContent
impl UnsafeUnpin 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