Struct elastic_responses::PingResponse
[−]
[src]
pub struct PingResponse { /* fields omitted */ }
Response for a cluster ping request.
Methods
impl PingResponse
[src]
fn name(&self) -> &str
[src]
The name of the pinged node.
fn cluster_name(&self) -> &str
[src]
The name of the cluster the pinged node belongs to.
fn version(&self) -> &ClusterVersion
[src]
The Elasticsearch version metadata.
Trait Implementations
impl Debug for PingResponse
[src]
impl IsOk for PingResponse
[src]
fn is_ok<B: ResponseBody>(
head: HttpResponseHead,
body: Unbuffered<B>
) -> Result<MaybeOkResponse<B>, ParseResponseError>
[src]
head: HttpResponseHead,
body: Unbuffered<B>
) -> Result<MaybeOkResponse<B>, ParseResponseError>
Inspect the http response to determine whether or not it succeeded.