pub enum Mapping {
    Exact {
        field: String,
    },
    Range {
        field: String,
    },
    Match {
        fields: Vec<String>,
        pipeline: TextPipeline,
    },
    DynamicMatch {
        pipeline: TextPipeline,
    },
    FieldDynamicMatch {
        pipeline: TextPipeline,
    },
}
Expand description

A specification for a certain kind of index. Each entry in the Mapping enum corresponds to one of the five CipherStash index types

  • exact
  • range
  • match
  • dynamic-match
  • field-dynamic-match

Variants

Exact

Fields

field: String

Range

Fields

field: String

Match

Fields

fields: Vec<String>
pipeline: TextPipeline

DynamicMatch

Fields

pipeline: TextPipeline

FieldDynamicMatch

Fields

pipeline: TextPipeline

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

Approximate the subject to a given type with the default scheme.

Approximate the subject to a given type with a specific scheme.

Convert the subject to a given type.

Attempt to convert the subject to a given type.

Attempt a value conversion of the subject to a given type.

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more