Struct pliantdb_core::schema::view::map::MappedValue [−][src]
pub struct MappedValue<K: Key, V> { pub key: K, pub value: V, }
Expand description
A key value pair
Fields
key: KThe key responsible for generating the value
value: VThe value generated by the View
Trait Implementations
impl<'de, K: Key, V> Deserialize<'de> for MappedValue<K, V> where
K: Deserialize<'de>,
V: Deserialize<'de>,
impl<'de, K: Key, V> Deserialize<'de> for MappedValue<K, V> where
K: Deserialize<'de>,
V: Deserialize<'de>, 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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<K, V> RefUnwindSafe for MappedValue<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe, impl<K, V> Send for MappedValue<K, V> where
V: Send, impl<K, V> Sync for MappedValue<K, V> where
V: Sync, impl<K, V> Unpin for MappedValue<K, V> where
K: Unpin,
V: Unpin, impl<K, V> UnwindSafe for MappedValue<K, V> where
K: UnwindSafe,
V: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self