Struct traq_bot_http::payloads::TagAddedPayload
source · 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 = serde_json::from_str(payload).unwrap();
println!("{payload:?}");Fields§
§event_time: TimeStamp§tag_id: Uuid§tag: StringTrait Implementations§
source§impl Clone for TagAddedPayload
impl Clone for TagAddedPayload
source§fn clone(&self) -> TagAddedPayload
fn clone(&self) -> TagAddedPayload
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 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 PartialEq<TagAddedPayload> for TagAddedPayload
impl PartialEq<TagAddedPayload> for TagAddedPayload
source§fn eq(&self, other: &TagAddedPayload) -> bool
fn eq(&self, other: &TagAddedPayload) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for TagAddedPayload
impl Serialize for TagAddedPayload
impl Eq for TagAddedPayload
impl StructuralEq for TagAddedPayload
impl StructuralPartialEq for TagAddedPayload
Auto Trait Implementations§
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