[][src]Struct elastic_requests::endpoints::NodesStatsRequest

pub struct NodesStatsRequest<'a> {
    pub url: UrlPath<'a>,
}

Get: /_nodes/stats

Elasticsearch Documentation

Fields

url: UrlPath<'a>

Methods

impl<'a> NodesStatsRequest<'a>[src]

pub fn new() -> Self[src]

Request to: /_nodes/stats

pub fn for_metric<IMetric>(metric: IMetric) -> Self where
    IMetric: Into<Metric<'a>>, 
[src]

Request to: /_nodes/stats/{metric}

pub fn for_metric_index_metric<IMetric, IIndexMetric>(
    metric: IMetric,
    index_metric: IIndexMetric
) -> Self where
    IMetric: Into<Metric<'a>>,
    IIndexMetric: Into<IndexMetric<'a>>, 
[src]

Request to: /_nodes/stats/{metric}/{index_metric}

pub fn for_node_id<INodeId>(node_id: INodeId) -> Self where
    INodeId: Into<NodeId<'a>>, 
[src]

Request to: /_nodes/{node_id}/stats

pub fn for_node_id_metric<INodeId, IMetric>(
    node_id: INodeId,
    metric: IMetric
) -> Self where
    INodeId: Into<NodeId<'a>>,
    IMetric: Into<Metric<'a>>, 
[src]

Request to: /_nodes/{node_id}/stats/{metric}

pub fn for_node_id_metric_index_metric<INodeId, IMetric, IIndexMetric>(
    node_id: INodeId,
    metric: IMetric,
    index_metric: IIndexMetric
) -> Self where
    INodeId: Into<NodeId<'a>>,
    IMetric: Into<Metric<'a>>,
    IIndexMetric: Into<IndexMetric<'a>>, 
[src]

Request to: /_nodes/{node_id}/stats/{metric}/{index_metric}

Trait Implementations

impl<'a> PartialEq<NodesStatsRequest<'a>> for NodesStatsRequest<'a>[src]

impl<'a> Clone for NodesStatsRequest<'a>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Into<Endpoint<'a, &'static [u8]>> for NodesStatsRequest<'a>[src]

impl<'a> Debug for NodesStatsRequest<'a>[src]

Auto Trait Implementations

impl<'a> Send for NodesStatsRequest<'a>

impl<'a> Sync for NodesStatsRequest<'a>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]