Skip to main content

PartialConfigExt

Trait PartialConfigExt 

Source
pub trait PartialConfigExt {
    // Required methods
    fn list_keys(&self) -> Vec<String>;
    fn get_value(&self, key: &str) -> Option<String>;
    fn count_set_fields(&self) -> usize;
}
Expand description

Extension trait for PartialConfig to get list of keys

Required Methods§

Source

fn list_keys(&self) -> Vec<String>

List all keys that have values set

Source

fn get_value(&self, key: &str) -> Option<String>

Get value for a key as string

Source

fn count_set_fields(&self) -> usize

Count number of fields that are Some

Implementors§