pub struct Path { /* private fields */ }Expand description
The current path of the serialization or deserialization.
This type is stored in the state and can be retrieved at any point. By
inspecting the segments a type can figure out where
it’s invoked from. It formats as servers[1].host.
The PathLayer also attaches the path to errors (see
Error::attachment) where it shows up as (path: servers[1].host) in
the error message.
Implementations§
Trait Implementations§
Source§impl Display for Path
Formats the path as servers[1].host.
impl Display for Path
Formats the path as servers[1].host.
The root path is formatted as an empty string and unknown segments as
?.
Source§impl ErrorAttachment for Path
impl ErrorAttachment for Path
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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