pub struct PongPayload {
pub pong: bool,
}Expand description
Use when the worker only needs to echo structured JSON inside payload.
Fields§
§pong: boolTrait Implementations§
Source§impl Clone for PongPayload
impl Clone for PongPayload
Source§fn clone(&self) -> PongPayload
fn clone(&self) -> PongPayload
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 PongPayload
impl Debug for PongPayload
Source§impl<'de> Deserialize<'de> for PongPayload
impl<'de> Deserialize<'de> for PongPayload
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
Auto Trait Implementations§
impl Freeze for PongPayload
impl RefUnwindSafe for PongPayload
impl Send for PongPayload
impl Sync for PongPayload
impl Unpin for PongPayload
impl UnsafeUnpin for PongPayload
impl UnwindSafe for PongPayload
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