pub enum AttachmentMetadata {
File,
Text,
Image {
width: isize,
height: isize,
},
Video {
width: isize,
height: isize,
},
Audio,
}
Expand description
Metadata associated with attachment
Variants§
File
Attachment is just a generic uncategorised file
Text
Attachment contains textual data and should be displayed as such
Image
Attachment is an image with specific dimensions
Video
Attachment is a video with specific dimensions
Audio
Attachment is audio
Trait Implementations§
Source§impl Clone for AttachmentMetadata
impl Clone for AttachmentMetadata
Source§fn clone(&self) -> AttachmentMetadata
fn clone(&self) -> AttachmentMetadata
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 AttachmentMetadata
impl Debug for AttachmentMetadata
Source§impl Default for AttachmentMetadata
impl Default for AttachmentMetadata
Source§fn default() -> AttachmentMetadata
fn default() -> AttachmentMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AttachmentMetadata
impl<'de> Deserialize<'de> for AttachmentMetadata
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 AttachmentMetadata
impl RefUnwindSafe for AttachmentMetadata
impl Send for AttachmentMetadata
impl Sync for AttachmentMetadata
impl Unpin for AttachmentMetadata
impl UnwindSafe for AttachmentMetadata
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