-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Is there some reasons the index and ty must be static in SearchRequestInner?
I find it is hard to give SearchRequestBuilder a static index name since it only can be computed runtime in some scenario.
pub fn index<I>(mut self, index: I) -> Self
where I: Into<Index<'static>>elastic/src/elastic/src/client/requests/search.rs
Lines 30 to 38 in 216ba8a
| pub type SearchRequestBuilder<TSender, TDocument, TBody> = RequestBuilder<TSender, SearchRequestInner<TDocument, TBody>>; | |
| #[doc(hidden)] | |
| pub struct SearchRequestInner<TDocument, TBody> { | |
| index: Option<Index<'static>>, | |
| ty: Option<Type<'static>>, | |
| body: TBody, | |
| _marker: PhantomData<TDocument>, | |
| } |
Metadata
Metadata
Assignees
Labels
No labels