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 Constants§
Sourceconst PLATE_TITLE: &'static str
const PLATE_TITLE: &'static str
String used in ASCII armored blocks
Required Associated Types§
type Id: Copy + Eq + Debug + Display + FromStr<Err = Baid58ParseError> + StrictType + StrictDumb + StrictEncode + StrictDecode
Required Methods§
Provided Methods§
fn bindle_headers(&self) -> BTreeMap<&'static str, String>
fn bindle(self) -> Bindle<Self>
fn bindle_mnemonic(&self) -> Option<String>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.