ledger-core
RippleLikeMemo.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from memo.djinni
3 
4 #ifndef DJINNI_GENERATED_RIPPLELIKEMEMO_HPP
5 #define DJINNI_GENERATED_RIPPLELIKEMEMO_HPP
6 
7 #include <iostream>
8 #include <string>
9 #include <utility>
10 
11 namespace ledger { namespace core { namespace api {
12 
18 struct RippleLikeMemo final {
20  std::string data;
22  std::string fmt;
24  std::string ty;
25 
26  RippleLikeMemo(std::string data_,
27  std::string fmt_,
28  std::string ty_)
29  : data(std::move(data_))
30  , fmt(std::move(fmt_))
31  , ty(std::move(ty_))
32  {}
33 
34  RippleLikeMemo(const RippleLikeMemo& cpy) {
35  this->data = cpy.data;
36  this->fmt = cpy.fmt;
37  this->ty = cpy.ty;
38  }
39 
40  RippleLikeMemo() = default;
41 
42 
43  RippleLikeMemo& operator=(const RippleLikeMemo& cpy) {
44  this->data = cpy.data;
45  this->fmt = cpy.fmt;
46  this->ty = cpy.ty;
47  return *this;
48  }
49 
50  template <class Archive>
51  void load(Archive& archive) {
52  archive(data, fmt, ty);
53  }
54 
55  template <class Archive>
56  void save(Archive& archive) const {
57  archive(data, fmt, ty);
58  }
59 };
60 
61 } } } // namespace ledger::core::api
62 #endif //DJINNI_GENERATED_RIPPLELIKEMEMO_HPP
Definition: BitcoinLikeFeePolicy.hpp:29
std::string ty
Definition: RippleLikeMemo.hpp:24
std::string data
Definition: RippleLikeMemo.hpp:20
Definition: Account.cpp:8
Definition: RippleLikeMemo.hpp:18
std::string fmt
Definition: RippleLikeMemo.hpp:22