Struct elastic_responses::PingResponse
[−]
[src]
pub struct PingResponse { /* fields omitted */ }
Response for a cluster ping request.
Methods
impl PingResponse
[src]
pub fn name(&self) -> &str
[src]
The name of the pinged node.
pub fn cluster_name(&self) -> &str
[src]
The name of the cluster the pinged node belongs to.
pub fn version(&self) -> &ClusterVersion
[src]
The Elasticsearch version metadata.
Trait Implementations
impl Debug for PingResponse
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
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.