remove Document: DocumentDeserialize dependency (#2211)

* remove Document: DocumentDeserialize dependency

The dependency requires users to implement an API they may not use.

* remove unnecessary Document bounds
This commit is contained in:
PSeitz
2023-10-13 07:59:54 +02:00
committed by GitHub
parent 337ffadefd
commit 182f58cea6
3 changed files with 11 additions and 8 deletions

View File

@@ -174,7 +174,7 @@ pub use self::value::{ReferenceValue, Value};
use super::*;
/// The core trait representing a document within the index.
pub trait Document: DocumentDeserialize + Send + Sync + 'static {
pub trait Document: Send + Sync + 'static {
/// The value of the field.
type Value<'a>: Value<'a> + Clone
where Self: 'a;