pub trait ExtensionOptions: Send + Sync + Debug + 'static {
    fn as_any(&self) -> &dyn Any;
    fn as_any_mut(&mut self) -> &mut dyn Any;
    fn cloned(&self) -> Box<dyn ExtensionOptions>;
    fn set(&mut self, key: &str, value: &str) -> Result<()>;
    fn entries(&self) -> Vec<ConfigEntry> ;
}
Expand description

An object-safe API for storing arbitrary configuration

Required Methods§

Return self as Any

This is needed until trait upcasting is stabilised

Return self as Any

This is needed until trait upcasting is stabilised

Return a deep clone of this ExtensionOptions

It is important this does not share mutable state to avoid consistency issues with configuration changing whilst queries are executing

Set the given key, value pair

Returns the ConfigEntry stored in this ExtensionOptions

Implementors§