Struct elastic::client::responses::PingResponse
[−]
pub struct PingResponse { /* fields omitted */ }
Response for a cluster ping request.
Methods
impl PingResponse
fn name(&self) -> &str
The name of the pinged node.
fn cluster_name(&self) -> &str
The name of the cluster the pinged node belongs to.
fn version(&self) -> &ClusterVersion
The Elasticsearch version metadata.
Trait Implementations
impl<'de> Deserialize<'de> for PingResponse
fn deserialize<__D>(
__deserializer: __D
) -> Result<PingResponse, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<PingResponse, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Debug for PingResponse
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl IsOk for PingResponse
fn is_ok<B>(
head: HttpResponseHead,
body: Unbuffered<B>
) -> Result<MaybeOkResponse<B>, ParseResponseError> where
B: ResponseBody,
head: HttpResponseHead,
body: Unbuffered<B>
) -> Result<MaybeOkResponse<B>, ParseResponseError> where
B: ResponseBody,
Inspect the http response to determine whether or not it succeeded.