Skip to main content

Module plugin_options

Module plugin_options 

Source

Structs§

StandaloneFlag
A flag for stating the standalone mode in the plugins.

Statics§

DROPPED_PLUGIN_TAGS 🔒
Buffer of plugin option tags that were dropped during config loading because they are not recognized by the current build.

Traits§

PluginOptionsDeserializer
A trait for deserializing Metasrv config from a JSON string.
PluginOptionsSerializer
A trait for serializing Metasrv config to a JSON string. So it can be used in the metasrv’s crate instead of depending on the plugins’ crate.

Functions§

collect_from_entry 🔒
Extracts the recognized plugin options from one config entry.
filter_known_plugin_options
Deserializes a list of plugin options leniently.
is_unknown_variant_tag 🔒
Decides whether tag names a variant unknown to T, without T having to enumerate its variants.
record_dropped_plugin
Records a plugin option tag that was dropped because it is not recognized by this build (for example, an enterprise plugin option seen by an open-source build).
take_dropped_plugin_warnings
Takes (and clears) the buffered dropped-plugin tags so they can be logged after the global logging is up.

Type Aliases§

PluginOptionsSerializerRef