#include </data/code/userver/libraries/proto-structs/include/userver/proto-structs/type_mapping.hpp>
Trait that marks struct as compatible to some protobuf message.
TStruct | struct type By default, trait returns TStruct::ProtobufMessage as it's Type definition. User can also specialize CompatibleMessageTrait for any struct type in the proto_structs::traits namespace if he can not modify the code which contains TStruct definition: namespace proto_structs::traits {
template<>
struct CompatibleMessageTrait<ExternalStruct> {
using Type = SomeProtoMessage;
}
}
|
Definition at line 43 of file type_mapping.hpp.
Public Types | |
using | Type = typename TStruct::ProtobufMessage |
using proto_structs::traits::CompatibleMessageTrait< TStruct >::Type = typename TStruct::ProtobufMessage |
Definition at line 44 of file type_mapping.hpp.