Skip to content

Commit

Permalink
add additional trait requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Nov 9, 2018
1 parent 679dfec commit 6614037
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/elastic/src/client/requests/document_delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -91,7 +91,7 @@ where
*/
pub fn document_delete<TDocument>(&self, id: Id<'static>) -> DeleteRequestBuilder<TSender, TDocument>
where
TDocument: StaticIndex + StaticType,
TDocument: DocumentType + StaticIndex + StaticType,
{
let index = TDocument::static_index().into();
let ty = TDocument::static_ty().into();
Expand Down
4 changes: 2 additions & 2 deletions src/elastic/src/client/requests/document_get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -117,7 +117,7 @@ where
*/
pub fn document_get<TDocument>(&self, id: Id<'static>) -> GetRequestBuilder<TSender, TDocument>
where
TDocument: DeserializeOwned + StaticIndex + StaticType,
TDocument: DeserializeOwned + DocumentType + StaticIndex + StaticType,
{
let index = TDocument::static_index().into();
let ty = TDocument::static_ty().into();
Expand Down
4 changes: 2 additions & 2 deletions src/elastic/src/client/requests/document_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -188,7 +188,7 @@ where
*/
pub fn document_update<TDocument>(&self, id: Id<'static>) -> UpdateRequestBuilder<TSender, Doc<TDocument>>
where
TDocument: StaticIndex + StaticType,
TDocument: DocumentType + StaticIndex + StaticType,
{
let index = TDocument::static_index().into();
let ty = TDocument::static_ty().into();
Expand Down

0 comments on commit 6614037

Please sign in to comment.