atg. only define capn types for structs.