Trait datafusion_common::config::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<()>

Object Safety§

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§