grafana-plugin-sdk-rust
grafana-plugin-sdk-rust copied to clipboard
Allow custom types for JSON/secure JSON data of plugins
This PR allows plugins to specify the concrete type of the
JSON/secure JSON data decoded into the PluginContext.instance_settings
field on incoming requests. They do so by implementing a new
GrafanaPlugin
trait (which all plugins must now do); this is made
easier by using an identically named derive macro and specifying the
custom types as attributes.