pub struct YamlContent { /* private fields */ }Expand description
YAML configuration content.
This type provides CRUD operations for YAML configuration data.
Implementations§
Source§impl YamlContent
impl YamlContent
Sourcepub fn from_value(value: YamlValue) -> Self
pub fn from_value(value: YamlValue) -> Self
Creates a new YamlContent from a YAML value.
Sourcepub fn into_value(self) -> YamlValue
pub fn into_value(self) -> YamlValue
Converts to the underlying YAML value.
Trait Implementations§
Source§impl Clone for YamlContent
impl Clone for YamlContent
Source§fn clone(&self) -> YamlContent
fn clone(&self) -> YamlContent
Returns a duplicate 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 ConfigContent for YamlContent
impl ConfigContent for YamlContent
Source§fn insert(&mut self, key: &Key, value: &Value) -> ConfigResult<()>
fn insert(&mut self, key: &Key, value: &Value) -> ConfigResult<()>
Insert a new value at the specified key path. Read more
Source§fn update(&mut self, key: &Key, value: &Value) -> ConfigResult<()>
fn update(&mut self, key: &Key, value: &Value) -> ConfigResult<()>
Update an existing value at the specified key path. Read more
Source§fn delete(&mut self, key: &Key) -> ConfigResult<()>
fn delete(&mut self, key: &Key) -> ConfigResult<()>
Delete a value at the specified key path. Read more
Source§fn upsert(&mut self, key: &Key, value: &Value) -> ConfigResult<()>
fn upsert(&mut self, key: &Key, value: &Value) -> ConfigResult<()>
Upsert (insert or update) a value at the specified key path. Read more
Source§fn contains_key(&self, key: &Key) -> bool
fn contains_key(&self, key: &Key) -> bool
Check if a key exists.
Source§impl Debug for YamlContent
impl Debug for YamlContent
Source§impl Display for YamlContent
impl Display for YamlContent
Source§impl FromStr for YamlContent
impl FromStr for YamlContent
Source§impl PartialEq for YamlContent
impl PartialEq for YamlContent
Auto Trait Implementations§
impl Freeze for YamlContent
impl RefUnwindSafe for YamlContent
impl Send for YamlContent
impl Sync for YamlContent
impl Unpin for YamlContent
impl UnsafeUnpin for YamlContent
impl UnwindSafe for YamlContent
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