Struct elastic::client::requests::HttpRequest
[−]
pub struct HttpRequest<'a, B> { pub url: Url<'a>, pub method: HttpMethod, pub body: Option<B>, }
A general request type that all endpoints can be converted into.
Fields
url: Url<'a>
method: HttpMethod
body: Option<B>
Trait Implementations
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesRolloverRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesGetTemplateRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatRecoveryRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for GetSourceRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatRepositoriesRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for UpdateByQueryRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesDeleteTemplateRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for SnapshotDeleteRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatPendingTasksRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for ClusterAllocationExplainRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for TasksGetRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesGetAliasRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatThreadPoolRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for ClusterHealthRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesGetMappingRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for DeleteScriptRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatNodesRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatAliasesRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for SearchShardsRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for CreateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesCloseRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for SimpleSearchRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for SuggestRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for NodesInfoRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IngestDeletePipelineRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesPutAliasRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for SnapshotVerifyRepositoryRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesAnalyzeRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatCountRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for GetScriptRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatHelpRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for CountPercolateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for ClusterPendingTasksRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesExistsTypeRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatTemplatesRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for PutScriptRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for ExistsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatSegmentsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesUpdateAliasesRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesSegmentsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for GetTemplateRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for ReindexRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesGetSettingsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for SnapshotCreateRepositoryRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesGetUpgradeRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesOpenRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for SnapshotStatusRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for DeleteRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for PingHeadRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesValidateQueryRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesPutTemplateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatIndicesRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for SearchRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesDeleteRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesDeleteAliasRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesFlushSyncedRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for ClusterRerouteRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for TasksListRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesUpgradeRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for DeleteByQueryRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesPutSettingsRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for ScrollRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for SnapshotRestoreRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for NodesStatsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesExistsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for FieldStatsRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for MsearchRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatTasksRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for MpercolateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesForcemergeRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for SnapshotGetRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesRecoveryRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatShardsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for DeleteTemplateRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatNodeattrsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesGetRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatFielddataRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for SnapshotDeleteRepositoryRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for TermvectorsRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for RenderSearchTemplateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatPluginsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesStatsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesClearCacheRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesRefreshRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for ClearScrollRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesCreateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesShardStoresRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for CountRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for InfoRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndexRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for SnapshotCreateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for ClusterGetSettingsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for PercolateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for ClusterStatsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatHealthRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatSnapshotsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesExistsAliasRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesGetFieldMappingRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IngestGetPipelineRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for MgetRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for GetRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for ReindexRethrottleRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for NodesHotThreadsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesShrinkRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for TasksCancelRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesFlushRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IngestPutPipelineRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatMasterRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for PutTemplateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for ClusterPutSettingsRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for IndicesExistsTemplateRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for SearchTemplateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IndicesPutMappingRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for PingRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for UpdateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for SnapshotGetRepositoryRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for MsearchTemplateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for MtermvectorsRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for CatAllocationRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for IngestSimulateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for BulkRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for ClusterStateRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a, B> Into<HttpRequest<'a, B>> for ExplainRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> PartialEq<HttpRequest<'a, B>> for HttpRequest<'a, B> where
B: PartialEq<B>,
B: PartialEq<B>,
fn eq(&self, __arg_0: &HttpRequest<'a, B>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &HttpRequest<'a, B>) -> bool
This method tests for !=
.
impl<'a, B> Clone for HttpRequest<'a, B> where
B: Clone,
B: Clone,
fn clone(&self) -> HttpRequest<'a, B>
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
impl<'a, B> Debug for HttpRequest<'a, B> where
B: Debug,
B: Debug,
Auto Trait Implementations
impl<'a, B> Send for HttpRequest<'a, B> where
B: Send,
B: Send,
impl<'a, B> Sync for HttpRequest<'a, B> where
B: Sync,
B: Sync,