Struct traq_bot_http::payloads::MessageDeletedPayload
source · pub struct MessageDeletedPayload {
pub event_time: TimeStamp,
pub message: DeletedMessage,
}Expand description
MESSAGE_DELETEDペイロード
Example
use traq_bot_http::payloads::MessageDeletedPayload;
let payload = r##"{
"eventTime": "2019-05-08T13:33:51.690308239Z",
"message": {
"id": "bc9106b3-f9b2-4eca-9ba1-72b39b40954e",
"channelId": "9aba50da-f605-4cd0-a428-5e4558cb911e"
}
}"##;
let payload = serde_json::from_str::<MessageDeletedPayload>(payload).unwrap();
println!("{payload}");Fields§
§event_time: TimeStamp§message: DeletedMessageTrait Implementations§
source§impl Clone for MessageDeletedPayload
impl Clone for MessageDeletedPayload
source§fn clone(&self) -> MessageDeletedPayload
fn clone(&self) -> MessageDeletedPayload
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 MessageDeletedPayload
impl Debug for MessageDeletedPayload
source§impl<'de> Deserialize<'de> for MessageDeletedPayload
impl<'de> Deserialize<'de> for MessageDeletedPayload
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 Display for MessageDeletedPayload
impl Display for MessageDeletedPayload
source§impl From<MessageDeletedPayload> for Event
impl From<MessageDeletedPayload> for Event
source§fn from(event: MessageDeletedPayload) -> Self
fn from(event: MessageDeletedPayload) -> Self
Converts to this type from the input type.
source§impl FromStr for MessageDeletedPayload
impl FromStr for MessageDeletedPayload
source§impl PartialEq for MessageDeletedPayload
impl PartialEq for MessageDeletedPayload
source§fn eq(&self, other: &MessageDeletedPayload) -> bool
fn eq(&self, other: &MessageDeletedPayload) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MessageDeletedPayload
impl Serialize for MessageDeletedPayload
impl Eq for MessageDeletedPayload
impl StructuralEq for MessageDeletedPayload
impl StructuralPartialEq for MessageDeletedPayload
Auto Trait Implementations§
impl RefUnwindSafe for MessageDeletedPayload
impl Send for MessageDeletedPayload
impl Sync for MessageDeletedPayload
impl Unpin for MessageDeletedPayload
impl UnwindSafe for MessageDeletedPayload
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