| #pragma once | |
| #include <cstdint> | |
| #include <nlohmann/json.hpp> | |
| namespace trusted_component | |
| { | |
| // clang-format off | |
| enum class TrustedComponentType : std::uint8_t{ | |
| Invalid, | |
| Discrete, | |
| Integrated, | |
| }; | |
| NLOHMANN_JSON_SERIALIZE_ENUM(TrustedComponentType, { | |
| {TrustedComponentType::Invalid, "Invalid"}, | |
| {TrustedComponentType::Discrete, "Discrete"}, | |
| {TrustedComponentType::Integrated, "Integrated"}, | |
| }); | |
| } // namespace trusted_component | |
| // clang-format on |