RpcDescriptor: implement Qt value type guidelines
Add missing functionality mentioned by quip-22 for Qt value types.
- Add Q_ENUM_NS for RpcType
- Add constexpr comparison operators with documentation
- Implement qHash with documentation
- Add QDebug streaming with documentation
- Delete QDataStream operators due to QLatin1StringView members
- Include comprehensive test coverage in new test case
We omit the implicit QVariant operator as RpcDescriptor is not default
constructible. We also omit the Q_DECLARE_TYPEINFO as this struct
doesn't meet the requirements.
Found during Qt 6.11 API review.
Pick-to: 6.11
Change-Id: Iaa0c1b69350bf8dff14e3aaf64d71437034977ba
Reviewed-by: Marc Mutz <marc.mutz@qt.io>