rippled
Loading...
Searching...
No Matches
Import.h
1#ifndef XRPL_RESOURCE_IMPORT_H_INCLUDED
2#define XRPL_RESOURCE_IMPORT_H_INCLUDED
3
4#include <xrpl/resource/Consumer.h>
5#include <xrpl/resource/detail/Entry.h>
6
7namespace ripple {
8namespace Resource {
9
11struct Import
12{
13 struct Item
14 {
15 explicit Item() = default;
16
19 };
20
21 // Dummy argument required for zero-copy construction
22 Import(int = 0) : whenExpires()
23 {
24 }
25
26 // When the imported data expires
28
29 // List of remote entries
31};
32
33} // namespace Resource
34} // namespace ripple
35
36#endif
An endpoint that consumes resources.
Definition Consumer.h:17
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
A set of imported consumer data from a gossip origin.
Definition Import.h:12
std::vector< Item > items
Definition Import.h:30
clock_type::time_point whenExpires
Definition Import.h:27