Struct mokuroku::QueryResult
source · [−]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
sourceimpl Debug for QueryResult
impl Debug for QueryResult
sourceimpl Hash for QueryResult
impl Hash for QueryResult
sourceimpl PartialEq<QueryResult> for QueryResult
impl PartialEq<QueryResult> for QueryResult
sourcefn eq(&self, other: &QueryResult) -> bool
fn eq(&self, other: &QueryResult) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &QueryResult) -> bool
fn ne(&self, other: &QueryResult) -> bool
This method tests for !=
.
impl Eq for QueryResult
impl StructuralEq for QueryResult
impl StructuralPartialEq for QueryResult
Auto Trait Implementations
impl RefUnwindSafe for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl UnwindSafe for QueryResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more