Struct elastic::client::requests::endpoints::ClusterStateRequest
[−]
pub struct ClusterStateRequest<'a> { pub url: Url<'a>, }
Get: /_cluster/state
Fields
url: Url<'a>
Methods
impl<'a> ClusterStateRequest<'a>
pub fn new() -> ClusterStateRequest<'a>
Request to: /_cluster/state
pub fn for_metric<IMetric>(metric: IMetric) -> ClusterStateRequest<'a> where
IMetric: Into<Metric<'a>>,
IMetric: Into<Metric<'a>>,
Request to: /_cluster/state/{metric}
pub fn for_metric_index<IMetric, IIndex>(
metric: IMetric,
index: IIndex
) -> ClusterStateRequest<'a> where
IIndex: Into<Index<'a>>,
IMetric: Into<Metric<'a>>,
metric: IMetric,
index: IIndex
) -> ClusterStateRequest<'a> where
IIndex: Into<Index<'a>>,
IMetric: Into<Metric<'a>>,
Request to: /_cluster/state/{metric}/{index}
Trait Implementations
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for ClusterStateRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> PartialEq<ClusterStateRequest<'a>> for ClusterStateRequest<'a>
fn eq(&self, __arg_0: &ClusterStateRequest<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ClusterStateRequest<'a>) -> bool
This method tests for !=
.
impl<'a> Clone for ClusterStateRequest<'a>
fn clone(&self) -> ClusterStateRequest<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more