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

Constructs a reduced ConstraintDocument by removing the fields that are part of the IndexSchema.

Returns whether the current constraint document matches a document.

Implementors