#[non_exhaustive]pub struct IgnoredElement {
pub node: String,
pub kind: String,
pub element: String,
}Expand description
A child element of a node that the parser read past without interpreting it: the node loaded, but whatever the element says was not taken into account.
Most such elements are documentation or presentation — <Extension>, a
vendor’s own block — but not all: a <String>’s <pValue> was read past
this way, so the string read empty and nothing said why (found on an
mvBlueFOX3-2004G). These records make that class of loss visible, as
SkippedNode does for whole nodes. See XmlModel::ignored.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.node: StringThe node’s name.
kind: StringThe node’s kind, as NodeDecl::kind names it, or Port.
element: StringThe element’s tag, as NodeMeta::ignored writes it.
Implementations§
Trait Implementations§
Source§impl Clone for IgnoredElement
impl Clone for IgnoredElement
Source§impl Debug for IgnoredElement
impl Debug for IgnoredElement
Source§impl<'de> Deserialize<'de> for IgnoredElement
impl<'de> Deserialize<'de> for IgnoredElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IgnoredElement
Source§impl Hash for IgnoredElement
impl Hash for IgnoredElement
Source§impl PartialEq for IgnoredElement
impl PartialEq for IgnoredElement
Source§impl Serialize for IgnoredElement
impl Serialize for IgnoredElement
impl StructuralPartialEq for IgnoredElement
Auto Trait Implementations§
impl Freeze for IgnoredElement
impl RefUnwindSafe for IgnoredElement
impl Send for IgnoredElement
impl Sync for IgnoredElement
impl Unpin for IgnoredElement
impl UnsafeUnpin for IgnoredElement
impl UnwindSafe for IgnoredElement
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