Struct collectd_plugin::ConfigItem
[−]
[src]
pub struct ConfigItem<'a> {
pub key: &'a str,
pub values: Vec<ConfigValue<'a>>,
pub children: Vec<ConfigItem<'a>>,
}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
Methods
impl<'a> ConfigItem<'a>[src]
pub unsafe fn from<'b>(
item: &'b oconfig_item_t
) -> Result<ConfigItem<'b>, Error>[src]
item: &'b oconfig_item_t
) -> Result<ConfigItem<'b>, Error>
Trait Implementations
impl<'a> Debug for ConfigItem<'a>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<'a> PartialEq for ConfigItem<'a>[src]
fn eq(&self, __arg_0: &ConfigItem<'a>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ConfigItem<'a>) -> bool[src]
This method tests for !=.
impl<'a> Clone for ConfigItem<'a>[src]
fn clone(&self) -> ConfigItem<'a>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more