mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com> Co-authored-by: Bart <bthomee@users.noreply.github.com>
32 lines
576 B
C++
32 lines
576 B
C++
#pragma once
|
|
|
|
#include <xrpl/resource/Consumer.h>
|
|
#include <xrpl/resource/detail/Entry.h>
|
|
|
|
namespace xrpl::Resource {
|
|
|
|
/** A set of imported consumer data from a gossip origin. */
|
|
struct Import
|
|
{
|
|
struct Item
|
|
{
|
|
explicit Item() = default;
|
|
|
|
int balance{};
|
|
Consumer consumer;
|
|
};
|
|
|
|
// Dummy argument required for zero-copy construction
|
|
Import(int = 0)
|
|
{
|
|
}
|
|
|
|
// When the imported data expires
|
|
clock_type::time_point whenExpires;
|
|
|
|
// List of remote entries
|
|
std::vector<Item> items;
|
|
};
|
|
|
|
} // namespace xrpl::Resource
|