How to access the values listed in the Darktable Lua API?

I would like to access the values in some of the types of the Darktable Lua API. For example, the doc says that the type dt_imageio_module_format_data_jpeg has a value plugin_name. How do I access the value of plugin_name for this type?

new_format = darktable.new_format("jpeg")
darktable.print(new_format.plugin_name)
1 Like