pub trait StorageMapper<SA>: 'static
where SA: StorageReadApi + StorageWriteApi + ErrorApi + Clone + 'static,
{ // Required method fn new(api: SA, key: BoxedBytes) -> Self; }

Required Methods§

source

fn new(api: SA, key: BoxedBytes) -> Self

Will be called automatically by the #[storage_mapper] annotation generated code.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<SA> StorageMapper<SA> for UserMapper<SA>
where SA: StorageReadApi + StorageWriteApi + ErrorApi + Clone + 'static,

source§

impl<SA, K, V> StorageMapper<SA> for MapMapper<SA, K, V>

source§

impl<SA, K, V> StorageMapper<SA> for MapStorageMapper<SA, K, V>

source§

impl<SA, T> StorageMapper<SA> for LinkedListMapper<SA, T>

source§

impl<SA, T> StorageMapper<SA> for SetMapper<SA, T>

source§

impl<SA, T> StorageMapper<SA> for SingleValueMapper<SA, T>

source§

impl<SA, T> StorageMapper<SA> for VecMapper<SA, T>