pub struct PingRequest {
pub method: MustBeStr<(p, i, n, g)>,
pub params: Option<PingRequestParams>,
pub extra: Map<String, Value>,
}
Expand description
A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected.
Fields§
§method: MustBeStr<(p, i, n, g)>
§params: Option<PingRequestParams>
§extra: Map<String, Value>
Additional parameters that are not part of the schema.
Trait Implementations§
Source§impl Clone for PingRequest
impl Clone for PingRequest
Source§fn clone(&self) -> PingRequest
fn clone(&self) -> PingRequest
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 PingRequest
impl Debug for PingRequest
Source§impl<'de> Deserialize<'de> for PingRequest
impl<'de> Deserialize<'de> for PingRequest
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 for PingRequest
impl PartialEq for PingRequest
Source§impl Serialize for PingRequest
impl Serialize for PingRequest
impl StructuralPartialEq for PingRequest
Auto Trait Implementations§
impl Freeze for PingRequest
impl RefUnwindSafe for PingRequest
impl Send for PingRequest
impl Sync for PingRequest
impl Unpin for PingRequest
impl UnwindSafe for PingRequest
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