pub enum AttachmentKind {
Image,
File,
Video,
Audio,
}Expand description
The kind of an attachment.
Variants§
Image
An image attachment.
File
A generic file attachment.
Video
A video attachment.
Audio
An audio attachment.
Trait Implementations§
Source§impl Clone for AttachmentKind
impl Clone for AttachmentKind
Source§fn clone(&self) -> AttachmentKind
fn clone(&self) -> AttachmentKind
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 AttachmentKind
impl Debug for AttachmentKind
Source§impl<'de> Deserialize<'de> for AttachmentKind
impl<'de> Deserialize<'de> for AttachmentKind
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
Source§impl PartialEq for AttachmentKind
impl PartialEq for AttachmentKind
Source§impl Serialize for AttachmentKind
impl Serialize for AttachmentKind
impl Copy for AttachmentKind
impl Eq for AttachmentKind
impl StructuralPartialEq for AttachmentKind
Auto Trait Implementations§
impl Freeze for AttachmentKind
impl RefUnwindSafe for AttachmentKind
impl Send for AttachmentKind
impl Sync for AttachmentKind
impl Unpin for AttachmentKind
impl UnsafeUnpin for AttachmentKind
impl UnwindSafe for AttachmentKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.