Struct miraie::messages::group::GroupMessage[][src]

pub struct GroupMessage {
    pub sender: GroupMember,
    pub message: MessageChain,
}
Expand description

群聊消息

Fields

sender: GroupMember

消息的发送者

message: MessageChain

消息本体

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

发送者的类型,对于私聊类型就是 crate::messages::friend::FriendMember, 对于群聊是 crate::messages::group::GroupMember; 这两者都实现了 AsRef<QQ> Read more

获取发送者信息

转换为 MessageChain

获取本聊天的后续消息。 如果是群聊,则返回当前群聊的任意后续消息; 如果是私聊,则返回当前私聊的任意后续消息。 Read more

获取这条消息发送者在本聊天中发送的后续消息

回复这条消息,产生“引用”。

不引用,直接回复这条消息

返回一条消息并等待回复,默认超时 10s Read more

返回一条消息并等待回复

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.