pub struct DirectMessageDeletedPayload {
pub event_time: TimeStamp,
pub message: DeletedDirectMessage,
}Expand description
DIRECT_MESSAGE_DELETEDペイロード
§Example
use traq_bot_http::payloads::DirectMessageDeletedPayload;
let payload = r##"{
"eventTime": "2019-05-08T13:36:09.421492525Z",
"message": {
"id": "2d7ff3f5-c313-4f4a-a9bb-0b5f84d2b6f8",
"userId": "dfdff0c9-5de0-46ee-9721-2525e8bb3d45",
"channelId": "c5a5a697-3bad-4540-b2da-93dc88181d34"
}
}"##;
let payload = serde_json::from_str::<DirectMessageDeletedPayload>(payload)?;
println!("{payload}");Fields§
§event_time: TimeStamp§message: DeletedDirectMessageTrait Implementations§
Source§impl Clone for DirectMessageDeletedPayload
impl Clone for DirectMessageDeletedPayload
Source§fn clone(&self) -> DirectMessageDeletedPayload
fn clone(&self) -> DirectMessageDeletedPayload
Returns a copy 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 DirectMessageDeletedPayload
impl Debug for DirectMessageDeletedPayload
Source§impl<'de> Deserialize<'de> for DirectMessageDeletedPayload
impl<'de> Deserialize<'de> for DirectMessageDeletedPayload
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 From<DirectMessageDeletedPayload> for Event
impl From<DirectMessageDeletedPayload> for Event
Source§fn from(event: DirectMessageDeletedPayload) -> Self
fn from(event: DirectMessageDeletedPayload) -> Self
Converts to this type from the input type.
impl Eq for DirectMessageDeletedPayload
impl StructuralPartialEq for DirectMessageDeletedPayload
Auto Trait Implementations§
impl Freeze for DirectMessageDeletedPayload
impl RefUnwindSafe for DirectMessageDeletedPayload
impl Send for DirectMessageDeletedPayload
impl Sync for DirectMessageDeletedPayload
impl Unpin for DirectMessageDeletedPayload
impl UnwindSafe for DirectMessageDeletedPayload
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)