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

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

Detailed Description

template<traits::ProtoStruct TStruct>
struct proto_structs::traits::CompatibleMessageTrait< TStruct >

Trait that marks struct as compatible to some protobuf message.

Template Parameters
TStructstruct 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:
template<>
struct CompatibleMessageTrait<ExternalStruct> {
using Type = SomeProtoMessage;
}
}

Definition at line 43 of file type_mapping.hpp.

Public Types

using Type = typename TStruct::ProtobufMessage
 

Member Typedef Documentation

◆ Type

template<traits::ProtoStruct TStruct>
using proto_structs::traits::CompatibleMessageTrait< TStruct >::Type = typename TStruct::ProtobufMessage

Definition at line 44 of file type_mapping.hpp.


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