Struct bonsaidb_core::schema::view::map::Serialized
source · pub struct Serialized {
pub source: Header,
pub key: Bytes,
pub value: Bytes,
}
Expand description
Represents a document’s entry in a View’s mappings, serialized and ready to store.
Fields§
§source: Header
The header of the document that emitted this entry.
key: Bytes
The key used to index the View.Operation
value: Bytes
An associated value stored in the view.Operation
Implementations§
source§impl Serialized
impl Serialized
sourcepub fn deserialized<View: SerializedView>(
&self
) -> Result<Map<View::Key, View::Value>, Error>
pub fn deserialized<View: SerializedView>( &self ) -> Result<Map<View::Key, View::Value>, Error>
Deserializes this map.
Trait Implementations§
source§impl Clone for Serialized
impl Clone for Serialized
source§fn clone(&self) -> Serialized
fn clone(&self) -> Serialized
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Serialized
impl Debug for Serialized
source§impl<'de> Deserialize<'de> for Serialized
impl<'de> Deserialize<'de> for Serialized
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more