pub trait BindleContent: StrictSerialize + StrictDeserialize + StrictDumb {
    type Id: Copy + Eq + Debug + Display + FromStr<Err = Baid58ParseError> + StrictType + StrictDumb + StrictEncode + StrictDecode;

    const MAGIC: [u8; 4];
    const PLATE_TITLE: &'static str;

    // Required method
    fn bindle_id(&self) -> Self::Id;

    // Provided methods
    fn bindle_headers(&self) -> BTreeMap<&'static str, String> { ... }
    fn bindle(self) -> Bindle<Self> { ... }
    fn bindle_mnemonic(&self) -> Option<String> { ... }
}

Required Associated Types§

Required Associated Constants§

source

const MAGIC: [u8; 4]

Magic bytes used in saving/restoring container from a file.

source

const PLATE_TITLE: &'static str

String used in ASCII armored blocks

Required Methods§

source

fn bindle_id(&self) -> Self::Id

Provided Methods§

source

fn bindle_headers(&self) -> BTreeMap<&'static str, String>

source

fn bindle(self) -> Bindle<Self>

source

fn bindle_mnemonic(&self) -> Option<String>

Implementors§

source§

impl BindleContent for Iface

source§

const MAGIC: [u8; 4] = _

source§

const PLATE_TITLE: &'static str = "RGB INTERFACE"

§

type Id = IfaceId

source§

impl BindleContent for IfaceImpl

source§

const MAGIC: [u8; 4] = _

source§

const PLATE_TITLE: &'static str = "RGB INTERFACE IMPLEMENTATION"

§

type Id = ImplId

source§

impl BindleContent for Contract

source§

const MAGIC: [u8; 4] = _

source§

const PLATE_TITLE: &'static str = "RGB CONTRACT"

§

type Id = ContractId

source§

impl BindleContent for Transfer

source§

const MAGIC: [u8; 4] = _

source§

const PLATE_TITLE: &'static str = "RGB STATE TRANSFER"

§

type Id = TransferId

source§

impl<Root: SchemaRoot> BindleContent for Schema<Root>

source§

const MAGIC: [u8; 4] = _

source§

const PLATE_TITLE: &'static str = "RGB SCHEMA"

§

type Id = SchemaId