Macro bitcoin_internals::impl_parse_and_serde

source ยท
macro_rules! impl_parse_and_serde {
    ($type:ty, $descr:expr, $func:expr, $error:ident, $error_source:ty $(, $error_derive:path)*) => { ... };
}
Expand description

Implements conversions from various string types as well as serde (de)serialization.

This calls impl_parse macro and implements serde deserialization by expecting and parsing a string and serialization by outputting a string.