pub struct TagAddedPayload {
pub event_time: TimeStamp,
pub tag_id: Uuid,
pub tag: String,
}
Expand description
TAG_ADDED
ペイロード
§Example
use traq_bot_http::payloads::TagAddedPayload;
let payload = r##"{
"eventTime": "2019-05-08T08:31:06.566228282Z",
"tagId": "2bc06cda-bdb9-4a68-8000-62f907f36a92",
"tag": "全強"
}"##;
let payload: TagAddedPayload = payload.parse()?;
println!("{payload}");
Fields§
§event_time: TimeStamp
§tag_id: Uuid
§tag: String
Trait Implementations§
Source§impl Clone for TagAddedPayload
impl Clone for TagAddedPayload
Source§fn clone(&self) -> TagAddedPayload
fn clone(&self) -> TagAddedPayload
Returns a duplicate 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 TagAddedPayload
impl Debug for TagAddedPayload
Source§impl<'de> Deserialize<'de> for TagAddedPayload
impl<'de> Deserialize<'de> for TagAddedPayload
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 TagAddedPayload
impl Display for TagAddedPayload
Source§impl From<TagAddedPayload> for Event
impl From<TagAddedPayload> for Event
Source§fn from(event: TagAddedPayload) -> Self
fn from(event: TagAddedPayload) -> Self
Converts to this type from the input type.
Source§impl From<TagAddedPayload> for TagRemovedPayload
impl From<TagAddedPayload> for TagRemovedPayload
Source§fn from(payload: TagAddedPayload) -> Self
fn from(payload: TagAddedPayload) -> Self
Converts to this type from the input type.
Source§impl From<TagRemovedPayload> for TagAddedPayload
impl From<TagRemovedPayload> for TagAddedPayload
Source§fn from(payload: TagRemovedPayload) -> Self
fn from(payload: TagRemovedPayload) -> Self
Converts to this type from the input type.
Source§impl FromStr for TagAddedPayload
impl FromStr for TagAddedPayload
Source§impl PartialEq for TagAddedPayload
impl PartialEq for TagAddedPayload
Source§impl Serialize for TagAddedPayload
impl Serialize for TagAddedPayload
impl Eq for TagAddedPayload
impl StructuralPartialEq for TagAddedPayload
Auto Trait Implementations§
impl Freeze for TagAddedPayload
impl RefUnwindSafe for TagAddedPayload
impl Send for TagAddedPayload
impl Sync for TagAddedPayload
impl Unpin for TagAddedPayload
impl UnwindSafe for TagAddedPayload
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