fn named_enum<L: SchemaTypeLink>(
    name: &'static str,
    variants: impl IntoIterator<Item = (u8, ScryptoTypeData<L>)>
) -> ScryptoTypeData<L>