From 6614037480419f7c62ce182a72ac373d962ca251 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Fri, 9 Nov 2018 18:19:52 +1000 Subject: [PATCH] add additional trait requirements --- src/elastic/src/client/requests/document_delete.rs | 4 ++-- src/elastic/src/client/requests/document_get.rs | 4 ++-- src/elastic/src/client/requests/document_update.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/elastic/src/client/requests/document_delete.rs b/src/elastic/src/client/requests/document_delete.rs index 5776f1458f..39743632c9 100644 --- a/src/elastic/src/client/requests/document_delete.rs +++ b/src/elastic/src/client/requests/document_delete.rs @@ -15,7 +15,7 @@ use client::requests::params::{Id, Index, Type}; use client::requests::endpoints::DeleteRequest; use client::requests::raw::RawRequestInner; use client::responses::DeleteResponse; -use types::document::{StaticIndex, StaticType}; +use types::document::{DocumentType, StaticIndex, StaticType}; /** A [delete document request][docs-delete] builder that can be configured before sending. @@ -91,7 +91,7 @@ where */ pub fn document_delete(&self, id: Id<'static>) -> DeleteRequestBuilder where - TDocument: StaticIndex + StaticType, + TDocument: DocumentType + StaticIndex + StaticType, { let index = TDocument::static_index().into(); let ty = TDocument::static_ty().into(); diff --git a/src/elastic/src/client/requests/document_get.rs b/src/elastic/src/client/requests/document_get.rs index 671fae8866..3060fa8390 100644 --- a/src/elastic/src/client/requests/document_get.rs +++ b/src/elastic/src/client/requests/document_get.rs @@ -16,7 +16,7 @@ use client::requests::params::{Id, Index, Type}; use client::requests::endpoints::GetRequest; use client::requests::raw::RawRequestInner; use client::responses::GetResponse; -use types::document::{StaticIndex, StaticType}; +use types::document::{DocumentType, StaticIndex, StaticType}; /** A [get document request][docs-get] builder that can be configured before sending. @@ -117,7 +117,7 @@ where */ pub fn document_get(&self, id: Id<'static>) -> GetRequestBuilder where - TDocument: DeserializeOwned + StaticIndex + StaticType, + TDocument: DeserializeOwned + DocumentType + StaticIndex + StaticType, { let index = TDocument::static_index().into(); let ty = TDocument::static_ty().into(); diff --git a/src/elastic/src/client/requests/document_update.rs b/src/elastic/src/client/requests/document_update.rs index 6e361e2a1f..0a85d00d7a 100644 --- a/src/elastic/src/client/requests/document_update.rs +++ b/src/elastic/src/client/requests/document_update.rs @@ -17,7 +17,7 @@ use client::requests::params::{Id, Index, Type}; use client::requests::endpoints::UpdateRequest; use client::requests::raw::RawRequestInner; use client::responses::UpdateResponse; -use types::document::{StaticIndex, StaticType}; +use types::document::{DocumentType, StaticIndex, StaticType}; /** An [update document request][docs-update] builder that can be configured before sending. @@ -188,7 +188,7 @@ where */ pub fn document_update(&self, id: Id<'static>) -> UpdateRequestBuilder> where - TDocument: StaticIndex + StaticType, + TDocument: DocumentType + StaticIndex + StaticType, { let index = TDocument::static_index().into(); let ty = TDocument::static_ty().into();