[][src]Struct mokuroku::QueryResult

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

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

impl Debug for QueryResult[src]

impl Eq for QueryResult[src]

impl Hash for QueryResult[src]

impl PartialEq<QueryResult> for QueryResult[src]

impl StructuralEq for QueryResult[src]

impl StructuralPartialEq for QueryResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.