Variable ros2_medkit_gateway::dto::is_opaque_dto_v

Variable Documentation

template<class T>
constexpr bool ros2_medkit_gateway::dto::is_opaque_dto_v = false

Opt-in marker for DTOs that bypass field-walking visitors and ship hand- written JsonWriter<T> / JsonReader<T> / SchemaWriter<T> specializations because their wire shape is runtime-dependent (e.g. plugin response envelopes whose payload is opaque to the gateway). Specialize this to true next to the type so framework templates that need a serializer (the typed RouteRegistry, schema collector) can accept the type without requiring a dto_fields<T> specialization.