Trait bonsaidb_core::document::Emit
source · [−]pub trait Emit {
fn emit_key_and_value<K: for<'a> Key<'a>, Value>(
&self,
key: K,
value: Value
) -> Result<Mappings<K, Value>, Error>;
fn emit(&self) -> Result<Mappings<(), ()>, Error> { ... }
fn emit_key<K: for<'a> Key<'a>>(
&self,
key: K
) -> Result<Mappings<K, ()>, Error> { ... }
fn emit_value<Value>(
&self,
value: Value
) -> Result<Mappings<(), Value>, Error> { ... }
}Expand description
View mapping emit functions. Used when implementing a view’s map()
function.
Required methods
Provided methods
Creates a Map result with an empty key and value.
Creates a Map result with a key and an empty value.