#[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§fn clone(&self) -> IgnoredElement
fn clone(&self) -> IgnoredElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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<IgnoredElement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IgnoredElement, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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