pub struct NodeElement {
pub tag: Option<NodeTag>,
pub attrs: Option<NodeElementAttr>,
pub children: Option<Vec<Node>>,
}
Expand description
Object represents a DOM element node.
Fields§
§tag: Option<NodeTag>
Name of the DOM element.
Available tags NodeTag
attrs: Option<NodeElementAttr>
Attributes of the DOM element. Key of object represents name of attribute,
value represents value of attribute.
Available attributes NodeElementAttr
children: Option<Vec<Node>>
List of child nodes for the DOM element.
Trait Implementations§
Source§impl Debug for NodeElement
impl Debug for NodeElement
Source§impl Default for NodeElement
impl Default for NodeElement
Source§fn default() -> NodeElement
fn default() -> NodeElement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeElement
impl<'de> Deserialize<'de> for NodeElement
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
Auto Trait Implementations§
impl Freeze for NodeElement
impl RefUnwindSafe for NodeElement
impl Send for NodeElement
impl Sync for NodeElement
impl Unpin for NodeElement
impl UnwindSafe for NodeElement
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