userver: /data/code/userver/libraries/proto-structs/include/userver/proto-structs/io/userver/proto_structs/unbreakable_dependency_cycle_conv.hpp Source File
Loading...
Searching...
No Matches
unbreakable_dependency_cycle_conv.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/proto-structs/io/userver/proto_structs/unbreakable_dependency_cycle_conv.hpp
4/// @brief Provides read/write context class with the ability to handle
5/// @ref proto_structs::UnbreakableDependecyCycle conversion
6
7#include <userver/proto-structs/io/userver/proto_structs/unbreakable_dependency_cycle.hpp>
8
9#include <userver/proto-structs/io/fwd.hpp>
10
11USERVER_NAMESPACE_BEGIN
12
13namespace proto_structs::io {
14
15template <typename TField>
16UnbreakableDependencyCycle ReadProtoField(
17 ReadContext&,
18 To<UnbreakableDependencyCycle>,
19 int /*field_number*/,
20 const TField& /*message_field*/
21) {
22 return {};
23}
24
25template <typename TField>
26void WriteProtoField(
27 WriteContext&,
28 const UnbreakableDependencyCycle& /*struct_field*/,
29 int /*field_number*/,
30 TField& /*message_field*/
31) {}
32
33template <typename TField>
34void WriteProtoField(
35 WriteContext&,
36 UnbreakableDependencyCycle&& /*struct_field*/,
37 int /*field_number*/,
38 TField& /*message_field*/
39) {}
40
41} // namespace proto_structs::io
42
43USERVER_NAMESPACE_END