19 lines
431 B
C++
19 lines
431 B
C++
#ifndef ID_PAYLOAD_HPP
|
|
#define ID_PAYLOAD_HPP
|
|
|
|
#include "Payload.hpp"
|
|
|
|
namespace work::models::jobs {
|
|
struct IdPayload : Payload {
|
|
uint64_t payload_id{};
|
|
template<typename Operator>
|
|
void process( Operator& op ) {
|
|
namespace field = matador::access;
|
|
field::process( op, *matador::base_class<Payload>( this ) );
|
|
field::attribute( op, "payload_id", payload_id );
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //ID_PAYLOAD_HPP
|