Struct mokuroku::QueryResult
source · 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§
source§impl Debug for QueryResult
impl Debug for QueryResult
source§impl Hash for QueryResult
impl Hash for QueryResult
source§impl PartialEq for QueryResult
impl PartialEq for QueryResult
source§fn 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 ==
.impl Eq 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more