#[repr(u32)]pub enum ContentMessageType {
Text = 0,
Image = 1,
File = 2,
Voice = 3,
Video = 4,
System = 5,
Audio = 6,
Location = 7,
ContactCard = 8,
Sticker = 9,
Forward = 10,
}Expand description
内容消息类型(u32,仅已知类型)
Variants§
Text = 0
文本消息
Image = 1
图片消息
File = 2
文件消息
Voice = 3
语音消息
Video = 4
视频消息
System = 5
系统消息
Audio = 6
音频消息
Location = 7
位置消息
ContactCard = 8
名片消息
Sticker = 9
表情包消息
Forward = 10
转发消息
Implementations§
Trait Implementations§
Source§impl Clone for ContentMessageType
impl Clone for ContentMessageType
Source§fn clone(&self) -> ContentMessageType
fn clone(&self) -> ContentMessageType
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 ContentMessageType
impl Debug for ContentMessageType
Source§impl<'de> Deserialize<'de> for ContentMessageType
impl<'de> Deserialize<'de> for ContentMessageType
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 ContentMessageType
impl Hash for ContentMessageType
Source§impl PartialEq for ContentMessageType
impl PartialEq for ContentMessageType
Source§impl Serialize for ContentMessageType
impl Serialize for ContentMessageType
impl Copy for ContentMessageType
impl Eq for ContentMessageType
impl StructuralPartialEq for ContentMessageType
Auto Trait Implementations§
impl Freeze for ContentMessageType
impl RefUnwindSafe for ContentMessageType
impl Send for ContentMessageType
impl Sync for ContentMessageType
impl Unpin for ContentMessageType
impl UnsafeUnpin for ContentMessageType
impl UnwindSafe for ContentMessageType
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