Trait rgbstd::containers::BindleContent
source · 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§
type Id: Copy + Eq + Debug + Display + FromStr<Err = Baid58ParseError> + StrictType + StrictDumb + StrictEncode + StrictDecode
Required Associated Constants§
sourceconst PLATE_TITLE: &'static str
const PLATE_TITLE: &'static str
String used in ASCII armored blocks