pub struct RequestEvent {
pub time: i64,
pub self_id: i64,
pub post_type: PostType,
pub request_type: String,
pub original_json: Value,
}Fields§
§time: i64事件发生的时间戳
self_id: i64收到事件的机器人 登陆号
post_type: PostType上报类型
request_type: String请求类型
original_json: Value原始的onebot消息,已处理成json格式
Implementations§
Trait Implementations§
Source§impl Clone for RequestEvent
impl Clone for RequestEvent
Source§fn clone(&self) -> RequestEvent
fn clone(&self) -> RequestEvent
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 RequestEvent
impl Debug for RequestEvent
Source§impl Event for RequestEvent
impl Event for RequestEvent
Source§fn de(
event: &InternalEvent,
_: &BotInformation,
_: &Sender<ApiAndOptOneshot>,
) -> Option<Self>
fn de( event: &InternalEvent, _: &BotInformation, _: &Sender<ApiAndOptOneshot>, ) -> Option<Self>
解析事件 Read more
Auto Trait Implementations§
impl Freeze for RequestEvent
impl RefUnwindSafe for RequestEvent
impl Send for RequestEvent
impl Sync for RequestEvent
impl Unpin for RequestEvent
impl UnsafeUnpin for RequestEvent
impl UnwindSafe for RequestEvent
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