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: u64
The 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 Serialized
impl Send for Serialized
impl Sync for Serialized
impl Unpin for Serialized
impl UnwindSafe for Serialized
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self