ledger-core
EstimatedSize.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from tuples.djinni
3 
4 #ifndef DJINNI_GENERATED_ESTIMATEDSIZE_HPP
5 #define DJINNI_GENERATED_ESTIMATEDSIZE_HPP
6 
7 #include <cstdint>
8 #include <iostream>
9 #include <utility>
10 
11 namespace ledger { namespace core { namespace api {
12 
18 struct EstimatedSize final {
19  int32_t Min;
20  int32_t Max;
21 
22  EstimatedSize(int32_t Min_,
23  int32_t Max_)
24  : Min(std::move(Min_))
25  , Max(std::move(Max_))
26  {}
27 
28  EstimatedSize(const EstimatedSize& cpy) {
29  this->Min = cpy.Min;
30  this->Max = cpy.Max;
31  }
32 
33  EstimatedSize() = default;
34 
35 
36  EstimatedSize& operator=(const EstimatedSize& cpy) {
37  this->Min = cpy.Min;
38  this->Max = cpy.Max;
39  return *this;
40  }
41 
42  template <class Archive>
43  void load(Archive& archive) {
44  archive(Min, Max);
45  }
46 
47  template <class Archive>
48  void save(Archive& archive) const {
49  archive(Min, Max);
50  }
51 };
52 
53 } } } // namespace ledger::core::api
54 #endif //DJINNI_GENERATED_ESTIMATEDSIZE_HPP
Definition: EstimatedSize.hpp:18
Definition: Account.cpp:8