Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
json-impls.hh File Reference
#include <nlohmann/json_fwd.hpp>
#include "nix/util/experimental-features.hh"

Go to the source code of this file.

Macros

#define JSON_IMPL_INNER_TO(TYPE)
#define JSON_IMPL_INNER_FROM(TYPE)
#define JSON_IMPL_INNER(TYPE)
#define JSON_IMPL(TYPE)
#define JSON_IMPL_WITH_XP_FEATURES_INNER(TYPE)
#define JSON_IMPL_WITH_XP_FEATURES(TYPE)

Macro Definition Documentation

◆ JSON_IMPL

#define JSON_IMPL ( TYPE)
Value:
namespace nlohmann { \
template<> \
JSON_IMPL_INNER(TYPE); \
}

◆ JSON_IMPL_INNER

#define JSON_IMPL_INNER ( TYPE)
Value:
struct adl_serializer<TYPE> \
{ \
static TYPE from_json(const json & json); \
static void to_json(json & json, const TYPE & t); \
}

◆ JSON_IMPL_INNER_FROM

#define JSON_IMPL_INNER_FROM ( TYPE)
Value:
struct adl_serializer<TYPE> \
{ \
static TYPE from_json(const json & json); \
}

◆ JSON_IMPL_INNER_TO

#define JSON_IMPL_INNER_TO ( TYPE)
Value:
struct adl_serializer<TYPE> \
{ \
static void to_json(json & json, const TYPE & t); \
}

◆ JSON_IMPL_WITH_XP_FEATURES

#define JSON_IMPL_WITH_XP_FEATURES ( TYPE)
Value:
namespace nlohmann { \
template<> \
JSON_IMPL_WITH_XP_FEATURES_INNER(TYPE); \
}

◆ JSON_IMPL_WITH_XP_FEATURES_INNER

#define JSON_IMPL_WITH_XP_FEATURES_INNER ( TYPE)
Value:
struct adl_serializer<TYPE> \
{ \
static TYPE from_json( \
const json & json, \
const nix::ExperimentalFeatureSettings & xpSettings = nix::experimentalFeatureSettings); \
static void to_json(json & json, const TYPE & t); \
}
Definition configuration.hh:558