Struct pliantdb_core::schema::view::map::Serialized [−][src]
Expand description
Represents a document’s entry in a View’s mappings, serialized and ready to store.
Fields
source: u64The id of the document that emitted this entry.
key: Vec<u8>The key used to index the View.
value: Vec<u8>An associated value stored in the view.
Implementations
pub fn deserialized<K: Key, V: Serialize + DeserializeOwned>(
&self
) -> Result<Map<K, V>, Error>
pub fn deserialized<K: Key, V: Serialize + DeserializeOwned>(
&self
) -> Result<Map<K, V>, Error>Deserializes this map.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Serializedimpl Send for Serializedimpl Sync for Serializedimpl Unpin for Serializedimpl UnwindSafe for SerializedBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self