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 = payload.parse()?;
println!("{payload}");
Fields§
§event_time: TimeStamp
Trait Implementations§
Source§impl Clone for PingPayload
impl Clone for PingPayload
Source§fn clone(&self) -> PingPayload
fn clone(&self) -> PingPayload
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 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 Display for PingPayload
impl Display for PingPayload
Source§impl From<PingPayload> for Event
impl From<PingPayload> for Event
Source§fn from(event: PingPayload) -> Self
fn from(event: PingPayload) -> Self
Converts to this type from the input type.
Source§impl FromStr for PingPayload
impl FromStr for PingPayload
Source§impl PartialEq for PingPayload
impl PartialEq for PingPayload
Source§impl Serialize for PingPayload
impl Serialize for PingPayload
impl Eq for PingPayload
impl StructuralPartialEq for PingPayload
Auto Trait Implementations§
impl Freeze for PingPayload
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