stub for a DSL to adapt structs
automatically infer argument 'class' for 'adapt_struct'