pub struct PingResult {
pub message: String,
pub protocol_version: i64,
pub timestamp: String,
}Expand description
Server liveness response, including the echoed message, current server timestamp, and protocol version.
Fields§
§message: StringEchoed message (or default greeting)
protocol_version: i64Server protocol version number
timestamp: StringISO 8601 timestamp when the server handled the ping
Trait Implementations§
Source§impl Clone for PingResult
impl Clone for PingResult
Source§fn clone(&self) -> PingResult
fn clone(&self) -> PingResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PingResult
impl Debug for PingResult
Source§impl Default for PingResult
impl Default for PingResult
Source§fn default() -> PingResult
fn default() -> PingResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PingResult
impl<'de> Deserialize<'de> for PingResult
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 PingResult
impl RefUnwindSafe for PingResult
impl Send for PingResult
impl Sync for PingResult
impl Unpin for PingResult
impl UnsafeUnpin for PingResult
impl UnwindSafe for PingResult
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