pub struct Recall {
pub peer: Peer,
pub id: MessageId,
pub sender: Uin,
pub operator: Uin,
pub suffix: Option<String>,
}Expand description
一条消息被撤回(Notice::Recall)。同时携带原始 sender(作者)与撤回它的 operator,
使 handler 能套自己的策略(如防撤回类插件可在 author != bot OR operator == bot 时触发)。
刻意不做自过滤——在这里写死一套自策略会挡掉防撤回功能需要的「bot 自己的消息被管理员
撤回」这一情形。
Fields§
§peer: Peer§id: MessageId§sender: Uin§operator: Uin§suffix: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Recall
impl RefUnwindSafe for Recall
impl Send for Recall
impl Sync for Recall
impl Unpin for Recall
impl UnsafeUnpin for Recall
impl UnwindSafe for Recall
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