Trait PrimaryKey
cw_storage_plus
pub trait PrimaryKey<'a> { type Prefix: Prefixer<'a>; fn key<'b>(&'b self) -> Vec<&'b [u8]>; }
type Prefix: Prefixer<'a>
fn key<'b>(&'b self) -> Vec<&'b [u8]>
returns a slice of key steps, which can be optionally combined
impl<'a> PrimaryKey<'a> for &'a [u8]
type Prefix = ()
impl<'a, T: PrimaryKey<'a> + Prefixer<'a>, U: PrimaryKey<'a>> PrimaryKey<'a> for (T, U)
type Prefix = T
impl<'a> PrimaryKey<'a> for PkOwned
impl<'a, T: AsRef<PkOwned>> PrimaryKey<'a> for T