grafana-plugin-sdk-rust icon indicating copy to clipboard operation
grafana-plugin-sdk-rust copied to clipboard

Allow custom types for JSON/secure JSON data of plugins

Open sd2k opened this issue 2 years ago • 0 comments

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.

sd2k avatar Oct 13 '22 22:10 sd2k