userver: userver/formats/json/serialize_duration.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
serialize_duration.hpp File Reference

Detailed Description

Serializers for std::chrono::duration types.

Definition in file serialize_duration.hpp.

Go to the source code of this file.

+ Include dependency graph for serialize_duration.hpp:

Namespaces

namespace  formats
 Value formats representation, parsing and serialization.
 
namespace  formats::serialize
 Common serializers.
 

Functions

template<class Rep , class Period >
static json::Value formats::serialize::Serialize (std::chrono::duration< Rep, Period > duration, To< formats::json::Value >)
 
template<class Rep , class Period >
static void formats::serialize::WriteToStream (std::chrono::duration< Rep, Period > duration, formats::json::StringBuilder &sw)