1 #pragma once 2 #include <nlohmann/json.hpp> 3 4 namespace task_service 5 { 6 // clang-format off 7 8 enum class OverWritePolicy{ 9 Invalid, 10 Manual, 11 Oldest, 12 }; 13 14 NLOHMANN_JSON_SERIALIZE_ENUM(OverWritePolicy, { 15 {OverWritePolicy::Invalid, "Invalid"}, 16 {OverWritePolicy::Manual, "Manual"}, 17 {OverWritePolicy::Oldest, "Oldest"}, 18 }); 19 20 } 21 // clang-format on 22