userver: proto_structs::traits::CompatibleMessageTrait< T > Struct Template Reference
Loading...
Searching...
No Matches
proto_structs::traits::CompatibleMessageTrait< T > Struct Template Reference

#include </data/code/userver/libraries/proto-structs/include/userver/proto-structs/type_mapping.hpp>

Detailed Description

template<typename T>
struct proto_structs::traits::CompatibleMessageTrait< T >

Trait that marks struct/class type as compatible to some protobuf message.

By default, trait uses T::ProtobufMessage as its nested Type definition. User can also specialize CompatibleMessageTrait for any type in the proto_structs::traits namespace if he can not modify the code which contains T definition:

template<>
struct CompatibleMessageTrait<ExternalStruct> {
using Type = SomeProtoMessage;
}
}

Definition at line 64 of file type_mapping.hpp.

Public Types

using Type = void
 

Member Typedef Documentation

◆ Type

template<typename T>
using proto_structs::traits::CompatibleMessageTrait< T >::Type = void

Definition at line 65 of file type_mapping.hpp.


The documentation for this struct was generated from the following file: