Trait substreams::store::StoreAdd

source ·
pub trait StoreAdd<V>: StoreDelete + StoreNew {
    // Required methods
    fn add<K: AsRef<str>>(&self, ord: u64, key: K, value: V);
    fn add_many<K: AsRef<str>>(&self, ord: u64, keys: &Vec<K>, value: V);
}
Expand description

StoreAdd is a trait which is implemented on any type of types StoreAdd

Required Methods§

source

fn add<K: AsRef<str>>(&self, ord: u64, key: K, value: V)

Add a given value to an already existing key

source

fn add_many<K: AsRef<str>>(&self, ord: u64, keys: &Vec<K>, value: V)

Add multiple values to an already existing key

Object Safety§

This trait is not object safe.

Implementors§