Struct collectd_plugin::ConfigItem
source · pub struct ConfigItem<'a> {
pub key: &'a str,
pub values: Vec<ConfigValue<'a>>,
pub children: Vec<ConfigItem<'a>>,
}
Expand description
Parsed key, values, children objects from the Collectd config.
Fields§
§key: &'a str
Key of the field, does not have to be unique
values: Vec<ConfigValue<'a>>
Values on the same line as the key
children: Vec<ConfigItem<'a>>
Sub elements
Implementations§
source§impl<'a> ConfigItem<'a>
impl<'a> ConfigItem<'a>
pub unsafe fn from<'b>(
item: &'b oconfig_item_t
) -> Result<ConfigItem<'b>, Error>
Trait Implementations§
source§impl<'a> Clone for ConfigItem<'a>
impl<'a> Clone for ConfigItem<'a>
source§fn clone(&self) -> ConfigItem<'a>
fn clone(&self) -> ConfigItem<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more