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>
Sourcepub unsafe fn from(item: &oconfig_item_t) -> Result<ConfigItem<'_>, ConfigError>
pub unsafe fn from(item: &oconfig_item_t) -> Result<ConfigItem<'_>, ConfigError>
§Safety
Assumed that the pointer is non-null
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 moreSource§impl<'a> Debug for ConfigItem<'a>
impl<'a> Debug for ConfigItem<'a>
Source§impl<'a> PartialEq for ConfigItem<'a>
impl<'a> PartialEq for ConfigItem<'a>
impl<'a> StructuralPartialEq for ConfigItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConfigItem<'a>
impl<'a> RefUnwindSafe for ConfigItem<'a>
impl<'a> Send for ConfigItem<'a>
impl<'a> Sync for ConfigItem<'a>
impl<'a> Unpin for ConfigItem<'a>
impl<'a> UnwindSafe for ConfigItem<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more