datafusion_common::config

Trait ConfigField

Source
pub trait ConfigField {
    // Required methods
    fn visit<V: Visit>(&self, v: &mut V, key: &str, description: &'static str);
    fn set(&mut self, key: &str, value: &str) -> Result<()>;
}
Expand description

A trait implemented by config_namespace and for field types that provides the ability to walk and mutate the configuration tree

Required Methods§

Source

fn visit<V: Visit>(&self, v: &mut V, key: &str, description: &'static str)

Source

fn set(&mut self, key: &str, value: &str) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ConfigField for bool

Source§

fn visit<V: Visit>(&self, v: &mut V, key: &str, description: &'static str)

Source§

fn set(&mut self, _: &str, value: &str) -> Result<()>

Source§

impl ConfigField for f64

Source§

fn visit<V: Visit>(&self, v: &mut V, key: &str, description: &'static str)

Source§

fn set(&mut self, _: &str, value: &str) -> Result<()>

Source§

impl ConfigField for u8

Source§

fn visit<V: Visit>(&self, v: &mut V, key: &str, description: &'static str)

Source§

fn set(&mut self, key: &str, value: &str) -> Result<()>

Source§

impl ConfigField for u64

Source§

fn visit<V: Visit>(&self, v: &mut V, key: &str, description: &'static str)

Source§

fn set(&mut self, _: &str, value: &str) -> Result<()>

Source§

impl ConfigField for usize

Source§

fn visit<V: Visit>(&self, v: &mut V, key: &str, description: &'static str)

Source§

fn set(&mut self, _: &str, value: &str) -> Result<()>

Source§

impl ConfigField for String

Source§

fn visit<V: Visit>(&self, v: &mut V, key: &str, description: &'static str)

Source§

fn set(&mut self, _: &str, value: &str) -> Result<()>

Source§

impl ConfigField for HashMap<String, ParquetColumnOptions>

Source§

fn set(&mut self, key: &str, value: &str) -> Result<()>

Source§

fn visit<V: Visit>( &self, v: &mut V, key_prefix: &str, _description: &'static str, )

Source§

impl<F: ConfigField + Default> ConfigField for Option<F>

Source§

fn visit<V: Visit>(&self, v: &mut V, key: &str, description: &'static str)

Source§

fn set(&mut self, key: &str, value: &str) -> Result<()>

Implementors§