Struct traq_bot_http::payloads::PingPayload
source · pub struct PingPayload {
pub event_time: TimeStamp,
}Expand description
PINGペイロード
Example
use traq_bot_http::payloads::PingPayload;
let payload = r##"{
"eventTime": "2019-05-07T04:50:48.582586882Z"
}"##;
let payload: PingPayload = serde_json::from_str(payload).unwrap();
println!("{payload:?}");Fields§
§event_time: TimeStampTrait Implementations§
source§impl Clone for PingPayload
impl Clone for PingPayload
source§fn clone(&self) -> PingPayload
fn clone(&self) -> PingPayload
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 PingPayload
impl Debug for PingPayload
source§impl<'de> Deserialize<'de> for PingPayload
impl<'de> Deserialize<'de> for PingPayload
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<PingPayload> for PingPayload
impl PartialEq<PingPayload> for PingPayload
source§fn eq(&self, other: &PingPayload) -> bool
fn eq(&self, other: &PingPayload) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for PingPayload
impl Serialize for PingPayload
impl Eq for PingPayload
impl StructuralEq for PingPayload
impl StructuralPartialEq for PingPayload
Auto Trait Implementations§
impl RefUnwindSafe for PingPayload
impl Send for PingPayload
impl Sync for PingPayload
impl Unpin for PingPayload
impl UnwindSafe for PingPayload
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