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]
impl<'a> ConfigItem<'a>pub unsafe fn from<'b>(
item: &'b oconfig_item_t
) -> Result<ConfigItem<'b>, Error>[src]
pub unsafe fn from<'b>(
item: &'b oconfig_item_t
) -> Result<ConfigItem<'b>, Error>Trait Implementations
impl<'a> Debug for ConfigItem<'a>[src]
impl<'a> Debug for ConfigItem<'a>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a> PartialEq for ConfigItem<'a>[src]
impl<'a> PartialEq for ConfigItem<'a>fn eq(&self, other: &ConfigItem<'a>) -> bool[src]
fn eq(&self, other: &ConfigItem<'a>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ConfigItem<'a>) -> bool[src]
fn ne(&self, other: &ConfigItem<'a>) -> boolThis method tests for !=.
impl<'a> Clone for ConfigItem<'a>[src]
impl<'a> Clone for ConfigItem<'a>fn clone(&self) -> ConfigItem<'a>[src]
fn clone(&self) -> ConfigItem<'a>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl<'a> Send for ConfigItem<'a>
impl<'a> Send for ConfigItem<'a>impl<'a> Sync for ConfigItem<'a>
impl<'a> Sync for ConfigItem<'a>