-record(variant, { name :: binary(), fields :: list(internal@codegen@types:field()) }).