pub struct PingResult {
pub data: Option<Value>,
pub _meta: Option<Value>,
}Expand description
Ping result (echoes back the data)
Fields§
§data: Option<Value>Echoed data from the request
_meta: Option<Value>Optional metadata per MCP 2025-06-18 specification
Implementations§
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 · 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<'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 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