pub struct PathLeaf<V> { /* private fields */ }Expand description
A leaf value addressed by a parsed path: server.port=8080.
FromStr for PathLeaf<String> keeps the RHS raw; the
serde_json::Value impl parses it as JSON with a string fallback.
Bracket steps parse, but conversion to a layer rejects them.
Implementations§
Source§impl<V> PathLeaf<V>
impl<V> PathLeaf<V>
Source§impl PathLeaf<String>
impl PathLeaf<String>
Sourcepub fn validate_keys(&self) -> Result<(), PathError>
pub fn validate_keys(&self) -> Result<(), PathError>
Check that the path contains keys only.
Sourcepub fn into_layer<V: ConfigFormat>(self) -> Result<V, PathError>
pub fn into_layer<V: ConfigFormat>(self) -> Result<V, PathError>
Type the RHS in the native format and expand it into a nested object.
Trait Implementations§
impl<V: PartialEq> StructuralPartialEq for PathLeaf<V>
Auto Trait Implementations§
impl<V> Freeze for PathLeaf<V>where
V: Freeze,
impl<V> RefUnwindSafe for PathLeaf<V>where
V: RefUnwindSafe,
impl<V> Send for PathLeaf<V>where
V: Send,
impl<V> Sync for PathLeaf<V>where
V: Sync,
impl<V> Unpin for PathLeaf<V>where
V: Unpin,
impl<V> UnsafeUnpin for PathLeaf<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for PathLeaf<V>where
V: UnwindSafe,
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