Enum tantivy::schema::Cardinality [] [src]

pub enum Cardinality {
    SingleValue,
    MultiValues,
}

Express whether a field is single-value or multi-valued.

Variants

The document must have exactly one value associated to the document.

The document can have any number of values associated to the document. This is more memory and CPU expensive than the SingleValue solution.

Trait Implementations

impl Clone for Cardinality
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Cardinality
[src]

impl PartialEq for Cardinality
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Cardinality
[src]

impl Debug for Cardinality
[src]

[src]

Formats the value using the given formatter. Read more