userver: ydb::ValueTraits< T, Enable > Struct Template Reference
Loading...
Searching...
No Matches
ydb::ValueTraits< T, Enable > Struct Template Reference

Detailed Description

template<typename T, typename Enable = void>
struct ydb::ValueTraits< T, Enable >

Definition at line 27 of file traits.hpp.

Static Public Member Functions

static T Parse (NYdb::TValueParser &parser, const ParseContext &context)
 
template<typename Builder >
static void Write (NYdb::TValueBuilderBase< Builder > &builder, const T &value)
 Writes an element of type T to builder.
 
static NYdb::TType MakeType ()=delete
 Uses NYdb::TTypeBuilder to create a representation of T type.
 

Member Function Documentation

◆ Parse()

template<typename T , typename Enable = void>
static T ydb::ValueTraits< T, Enable >::Parse ( NYdb::TValueParser & parser,
const ParseContext & context )
inlinestatic

Parses an element of type T from parser. context may be used for diagnostic messages.

Definition at line 30 of file traits.hpp.

◆ Write()

template<typename T , typename Enable = void>
template<typename Builder >
static void ydb::ValueTraits< T, Enable >::Write ( NYdb::TValueBuilderBase< Builder > & builder,
const T & value )
inlinestatic

Writes an element of type T to builder.

Definition at line 41 of file traits.hpp.


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