Trait cw_storage_plus::PrimaryKey
source · [−]pub trait PrimaryKey<'a>: Clone {
type Prefix: Prefixer<'a>;
type SubPrefix: Prefixer<'a>;
fn key(&self) -> Vec<&[u8]>;
fn joined_key(&self) -> Vec<u8> { ... }
}
Required Associated Types
Required Methods
Provided Methods
fn joined_key(&self) -> Vec<u8>
Implementations on Foreign Types
sourceimpl<'a> PrimaryKey<'a> for ()
impl<'a> PrimaryKey<'a> for ()
sourceimpl<'a> PrimaryKey<'a> for &'a [u8]
impl<'a> PrimaryKey<'a> for &'a [u8]
sourceimpl<'a> PrimaryKey<'a> for &'a str
impl<'a> PrimaryKey<'a> for &'a str
sourceimpl<'a, T: PrimaryKey<'a> + Prefixer<'a>, U: PrimaryKey<'a>> PrimaryKey<'a> for (T, U)
impl<'a, T: PrimaryKey<'a> + Prefixer<'a>, U: PrimaryKey<'a>> PrimaryKey<'a> for (T, U)
sourceimpl<'a, T: PrimaryKey<'a> + Prefixer<'a>, U: PrimaryKey<'a> + Prefixer<'a>, V: PrimaryKey<'a>> PrimaryKey<'a> for (T, U, V)
impl<'a, T: PrimaryKey<'a> + Prefixer<'a>, U: PrimaryKey<'a> + Prefixer<'a>, V: PrimaryKey<'a>> PrimaryKey<'a> for (T, U, V)
sourceimpl<'a> PrimaryKey<'a> for Vec<u8>
impl<'a> PrimaryKey<'a> for Vec<u8>
sourceimpl<'a> PrimaryKey<'a> for String
impl<'a> PrimaryKey<'a> for String
sourceimpl<'a> PrimaryKey<'a> for &'a Addr
impl<'a> PrimaryKey<'a> for &'a Addr
type safe version to ensure address was validated before use.
sourceimpl<'a> PrimaryKey<'a> for Addr
impl<'a> PrimaryKey<'a> for Addr
owned variant.