Trait cudb::query::ConstraintDocumentTrait [−][src]
pub trait ConstraintDocumentTrait {
fn remove_index_fields(&self, index_schema: &IndexSchema) -> Self;
fn matches_document(&self, doc: &Document) -> bool;
}
Expand description
Exists so that we can implement functions on ConstraintDocument.
Required methods
fn remove_index_fields(&self, index_schema: &IndexSchema) -> Self
fn remove_index_fields(&self, index_schema: &IndexSchema) -> Self
Constructs a reduced ConstraintDocument by removing the fields that are part of the IndexSchema.
fn matches_document(&self, doc: &Document) -> bool
fn matches_document(&self, doc: &Document) -> bool
Returns whether the current constraint document matches a document.