pub struct BotMessageStampsUpdatedPayload {
pub event_time: TimeStamp,
pub message_id: Uuid,
pub stamps: Vec<MessageStamp>,
}Expand description
BOT_MESSAGE_STAMPS_UPDATEDペイロード
Example
use traq_bot_http::payloads::BotMessageStampsUpdatedPayload;
let payload = r##"{
"eventTime": "2020-10-17T03:35:34.5326265Z",
"messageId": "200b6600-b2cd-4c1e-b366-9c40308cc087",
"stamps": [
{
"stampId": "1cd58034-8998-4b1c-afe4-fcd591354a97",
"userId": "b80551a5-2768-4d29-ad78-8e0e92330c8d",
"count": 22,
"createdAt": "2020-10-17T03:35:17.89545Z",
"updatedAt": "2020-10-17T03:35:34Z"
},
{
"stampId": "6fc62b49-dea0-45b8-8c0c-38035082b111",
"userId": "b80551a5-2768-4d29-ad78-8e0e92330c8d",
"count": 23,
"createdAt": "2020-10-17T03:35:17.737127Z",
"updatedAt": "2020-10-17T03:35:34Z"
},
{
"stampId": "b77fad4e-b63f-42a2-916c-5cfe5af3d8b9",
"userId": "b80551a5-2768-4d29-ad78-8e0e92330c8d",
"count": 24,
"createdAt": "2020-10-17T03:34:56.575099Z",
"updatedAt": "2020-10-17T03:35:34Z"
}
]
}"##;
let payload = serde_json::from_str::<BotMessageStampsUpdatedPayload>(payload).unwrap();
println!("{payload:?}");Fields§
§event_time: TimeStamp§message_id: Uuid§stamps: Vec<MessageStamp>Trait Implementations§
source§impl Clone for BotMessageStampsUpdatedPayload
impl Clone for BotMessageStampsUpdatedPayload
source§fn clone(&self) -> BotMessageStampsUpdatedPayload
fn clone(&self) -> BotMessageStampsUpdatedPayload
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<'de> Deserialize<'de> for BotMessageStampsUpdatedPayload
impl<'de> Deserialize<'de> for BotMessageStampsUpdatedPayload
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 PartialEq<BotMessageStampsUpdatedPayload> for BotMessageStampsUpdatedPayload
impl PartialEq<BotMessageStampsUpdatedPayload> for BotMessageStampsUpdatedPayload
source§fn eq(&self, other: &BotMessageStampsUpdatedPayload) -> bool
fn eq(&self, other: &BotMessageStampsUpdatedPayload) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for BotMessageStampsUpdatedPayload
impl StructuralEq for BotMessageStampsUpdatedPayload
impl StructuralPartialEq for BotMessageStampsUpdatedPayload
Auto Trait Implementations§
impl RefUnwindSafe for BotMessageStampsUpdatedPayload
impl Send for BotMessageStampsUpdatedPayload
impl Sync for BotMessageStampsUpdatedPayload
impl Unpin for BotMessageStampsUpdatedPayload
impl UnwindSafe for BotMessageStampsUpdatedPayload
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