Module elastic_requests::endpoints
[−]
[src]
REST API endpoints.
Each type corresponds to a single HTTP method on a single endpoint.
Request types have constructor functions that take the form
for_param_1_param_2_param_n
, and accept a Body
parameter if the underlying
method is a POST
or PUT
.
Other request parameters accept any type that can be converted into the
parameter type, usually a String
or &str
.
Request types don't take ownership of their inputs unless you pass in owned
data.
That means if some function expects a SearchRequest<'static>
then you can
either use a SearchRequest
with owned String
inputs, or one that uses only
'static
inputs.