pub struct YamlDoc { /* private fields */ }Implementations§
Source§impl YamlDoc
impl YamlDoc
pub fn from_value(value: Value) -> Self
pub fn as_value(&self) -> &Value
pub fn into_inner(self) -> Value
pub fn get_path(&self, path: &YamlPath) -> Option<&Value>
pub fn get(&self, path: &str) -> Result<Option<&Value>, YmlError>
pub fn get_string(&self, path: &str) -> Result<Option<String>, YmlError>
pub fn get_string_at(&self, path: &YamlPath) -> Option<String>
Trait Implementations§
Source§impl YamlLookup for YamlDoc
impl YamlLookup for YamlDoc
impl StructuralPartialEq for YamlDoc
Auto Trait Implementations§
impl Freeze for YamlDoc
impl RefUnwindSafe for YamlDoc
impl Send for YamlDoc
impl Sync for YamlDoc
impl Unpin for YamlDoc
impl UnsafeUnpin for YamlDoc
impl UnwindSafe for YamlDoc
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