#[repr(i32)]pub enum MessageItemType {
None = 0,
Text = 1,
Image = 2,
Voice = 3,
File = 4,
Video = 5,
}Expand description
Content type of a message item.
Variants§
Trait Implementations§
Source§impl Clone for MessageItemType
impl Clone for MessageItemType
Source§fn clone(&self) -> MessageItemType
fn clone(&self) -> MessageItemType
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 MessageItemType
impl Debug for MessageItemType
Source§impl Default for MessageItemType
impl Default for MessageItemType
Source§impl<'de> Deserialize<'de> for MessageItemType
impl<'de> Deserialize<'de> for MessageItemType
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 MessageItemType
impl PartialEq for MessageItemType
Source§fn eq(&self, other: &MessageItemType) -> bool
fn eq(&self, other: &MessageItemType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessageItemType
impl Serialize for MessageItemType
impl Copy for MessageItemType
impl Eq for MessageItemType
impl StructuralPartialEq for MessageItemType
Auto Trait Implementations§
impl Freeze for MessageItemType
impl RefUnwindSafe for MessageItemType
impl Send for MessageItemType
impl Sync for MessageItemType
impl Unpin for MessageItemType
impl UnsafeUnpin for MessageItemType
impl UnwindSafe for MessageItemType
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