pub struct RawNode {
pub name: String,
pub attributes: BTreeMap<String, String>,
pub text: Option<String>,
pub children: Vec<RawNode>,
}Expand description
Public UPF data model. A lossless raw node used to preserve unsupported sections.
Fields§
§name: StringOriginal XML tag name.
attributes: BTreeMap<String, String>XML attributes attached to the node.
text: Option<String>Trimmed text content, when present.
children: Vec<RawNode>Child nodes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawNode
impl<'de> Deserialize<'de> for RawNode
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 StructuralPartialEq for RawNode
Auto Trait Implementations§
impl Freeze for RawNode
impl RefUnwindSafe for RawNode
impl Send for RawNode
impl Sync for RawNode
impl Unpin for RawNode
impl UnsafeUnpin for RawNode
impl UnwindSafe for RawNode
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