Struct elastic::client::responses::PingResponse
[−]
pub struct PingResponse { /* fields omitted */ }
Response for a cluster ping request.
Methods
impl PingResponse
pub fn name(&self) -> &str
The name of the pinged node.
pub fn cluster_name(&self) -> &str
The name of the cluster the pinged node belongs to.
pub fn version(&self) -> &ClusterVersion
The Elasticsearch version metadata.
Trait Implementations
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.
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>,
Deserialize this value from the given Serde deserializer. Read more