Enum quickxml_to_serde::PathMatcher
source · pub enum PathMatcher {
Absolute(String),
}
Expand description
Used as a parameter for Config.add_json_type_override
. Defines how the XML path should be matched
in order to apply the JSON type overriding rules. This enumerator exists to allow the same function
to be used for multiple different types of path matching rules.
Variants§
Absolute(String)
An absolute path starting with a leading slash (/
). E.g. /a/b/c/@d
.
It’s implicitly converted from &str
and automatically includes the leading slash.
Trait Implementations§
source§impl Debug for PathMatcher
impl Debug for PathMatcher
Auto Trait Implementations§
impl RefUnwindSafe for PathMatcher
impl Send for PathMatcher
impl Sync for PathMatcher
impl Unpin for PathMatcher
impl UnwindSafe for PathMatcher
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