pub enum AttachmentMetadata {
File,
Text,
Audio,
Image {
width: usize,
height: usize,
},
Video {
width: usize,
height: usize,
},
}Expand description
Attachment metadata
Variants§
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<'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
Source§impl Hash for AttachmentMetadata
impl Hash for AttachmentMetadata
Source§impl Ord for AttachmentMetadata
impl Ord for AttachmentMetadata
Source§fn cmp(&self, other: &AttachmentMetadata) -> Ordering
fn cmp(&self, other: &AttachmentMetadata) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttachmentMetadata
impl PartialEq for AttachmentMetadata
Source§impl PartialOrd for AttachmentMetadata
impl PartialOrd for AttachmentMetadata
Source§impl Serialize for AttachmentMetadata
impl Serialize for AttachmentMetadata
impl Eq for AttachmentMetadata
impl StructuralPartialEq for AttachmentMetadata
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