pub struct QueryResult {
    pub key: Box<[u8]>,
    pub value: Box<[u8]>,
    pub doc_id: Box<[u8]>,
}
Expand description

Represents a single result from a query.

The key is that which was emitted by the application, and similarly the value is whatever the application emitted along with the key (it will be an empty vector if the application emitted None). The doc_id is the primary key of the data record, a named borrowed from PouchDB.

Fields

key: Box<[u8]>

Secondary index key generated by the application.

value: Box<[u8]>

Secondary index value generated by the application.

doc_id: Box<[u8]>

Document key from which this index entry was generated.

Trait Implementations

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. 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

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.