Trait cw_storage_plus::PrimaryKey[][src]

pub trait PrimaryKey<'a>: Clone {
    type Prefix: Prefixer<'a>;
    type SubPrefix: Prefixer<'a>;
    fn key(&self) -> Vec<&[u8]>;

    fn joined_key(&self) -> Vec<u8> { ... }
}

Associated Types

Required methods

fn key(&self) -> Vec<&[u8]>[src]

returns a slice of key steps, which can be optionally combined

Provided methods

fn joined_key(&self) -> Vec<u8>[src]

Implementations on Foreign Types

impl<'a> PrimaryKey<'a> for &'a [u8][src]

type Prefix = ()

type SubPrefix = ()

fn key(&self) -> Vec<&[u8]>[src]

impl<'a> PrimaryKey<'a> for &'a str[src]

type Prefix = ()

type SubPrefix = ()

fn key(&self) -> Vec<&[u8]>[src]

impl<'a, T: PrimaryKey<'a> + Prefixer<'a>, U: PrimaryKey<'a>> PrimaryKey<'a> for (T, U)[src]

type Prefix = T

type SubPrefix = ()

fn key(&self) -> Vec<&[u8]>[src]

impl<'a, T: PrimaryKey<'a> + Prefixer<'a>, U: PrimaryKey<'a> + Prefixer<'a>, V: PrimaryKey<'a>> PrimaryKey<'a> for (T, U, V)[src]

type Prefix = (T, U)

type SubPrefix = T

fn key(&self) -> Vec<&[u8]>[src]

impl<'a> PrimaryKey<'a> for Vec<u8>[src]

type Prefix = ()

type SubPrefix = ()

fn key(&self) -> Vec<&[u8]>[src]

impl<'a> PrimaryKey<'a> for &'a Addr[src]

type safe version to ensure address was validated before use.

type Prefix = ()

type SubPrefix = ()

fn key(&self) -> Vec<&[u8]>[src]

Implementors