pub struct TupleSerdeKeyDataBinding<K, V> { /* private fields */ }Expand description
A simpler entity binding where key and value types are distinct and the
entity is the pair (K, V).
This avoids requiring closure-based extraction by working directly with tuples.
Implementations§
Source§impl<K, V> TupleSerdeKeyDataBinding<K, V>
impl<K, V> TupleSerdeKeyDataBinding<K, V>
Trait Implementations§
Source§impl<K, V> Clone for TupleSerdeKeyDataBinding<K, V>
impl<K, V> Clone for TupleSerdeKeyDataBinding<K, V>
Source§impl<K, V> Debug for TupleSerdeKeyDataBinding<K, V>
impl<K, V> Debug for TupleSerdeKeyDataBinding<K, V>
Source§impl<K, V> Default for TupleSerdeKeyDataBinding<K, V>
impl<K, V> Default for TupleSerdeKeyDataBinding<K, V>
Source§impl<K, V> EntityBinding<(K, V)> for TupleSerdeKeyDataBinding<K, V>
impl<K, V> EntityBinding<(K, V)> for TupleSerdeKeyDataBinding<K, V>
Source§fn entry_to_object(
&self,
key: &DatabaseEntry,
data: &DatabaseEntry,
) -> Result<(K, V)>
fn entry_to_object( &self, key: &DatabaseEntry, data: &DatabaseEntry, ) -> Result<(K, V)>
Converts key and data entries to an entity object. Read more
Source§fn object_to_key(&self, object: &(K, V), key: &mut DatabaseEntry) -> Result<()>
fn object_to_key(&self, object: &(K, V), key: &mut DatabaseEntry) -> Result<()>
Extracts the key from an entity object and writes it to a
DatabaseEntry. Read moreSource§fn object_to_data(
&self,
object: &(K, V),
data: &mut DatabaseEntry,
) -> Result<()>
fn object_to_data( &self, object: &(K, V), data: &mut DatabaseEntry, ) -> Result<()>
Extracts the data from an entity object and writes it to a
DatabaseEntry. Read moreAuto Trait Implementations§
impl<K, V> Freeze for TupleSerdeKeyDataBinding<K, V>
impl<K, V> RefUnwindSafe for TupleSerdeKeyDataBinding<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for TupleSerdeKeyDataBinding<K, V>
impl<K, V> Sync for TupleSerdeKeyDataBinding<K, V>
impl<K, V> Unpin for TupleSerdeKeyDataBinding<K, V>
impl<K, V> UnsafeUnpin for TupleSerdeKeyDataBinding<K, V>
impl<K, V> UnwindSafe for TupleSerdeKeyDataBinding<K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
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