Macro relay_common::impl_str_serde

source ยท
macro_rules! impl_str_serde {
    ($type:ty, $expectation:expr) => { ... };
}
Expand description

Helper macro to implement string based serialization and deserialization.

If a type implements FromStr and Display then this automatically implements a serializer/deserializer for that type that dispatches appropriately.