pub enum MessageType {
}Expand description
消息类型
Variants§
Text
纯文本
TextReference
带有引用的文本消息
这种类型下 StrContent 为空,发送和引用的内容均在 CompressContent 中
Image
图片
Voice
语音
Video
视频
VideoRecommend
视频推荐
Emoji
动画表情
第三方开发的表情包
EmojiGif
GIF 表情
用户上传的表情包
CompressContent中有 CDN 链接
File
二进制文件
CompressContent中有文件名和下载链接BytesExtra中有本地保存的路径
PhoneCall
电话
MiniProgram
分享的小程序
CompressContent中有卡片信息BytesExtra中有封面缓存位置
FriendPatPat
拍一拍
FriendRecommend
朋友推荐
GroupNotice
群公告
SystemNotice
系统通知
居中出现的那种灰色文字
SystemInvite
邀请通知
特别包含你邀请别人加入群聊
Revoke
消息撤回
Unknown
未知类型
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
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 MessageType
impl Debug for MessageType
Source§impl Display for MessageType
impl Display for MessageType
Source§impl IntoExcelData for MessageType
impl IntoExcelData for MessageType
impl Copy for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more