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§
§impl Serialized
impl Serialized
pub fn deserialized<View>(
&self
) -> Result<Map<<View as View>::Key, <View as View>::Value>, Error>where
View: SerializedView,
pub fn deserialized<View>( &self ) -> Result<Map<<View as View>::Key, <View as View>::Value>, Error>where View: SerializedView,
Deserializes this map.
Trait Implementations§
§impl Clone for Serialized
impl Clone for Serialized
§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 more§impl Debug for Serialized
impl Debug for Serialized
§impl<'de> Deserialize<'de> for Serialized
impl<'de> Deserialize<'de> for Serialized
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Serialized, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Serialized, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Serialized
impl Serialize for Serialized
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. 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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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