pub struct NodeElement {
pub tag: String,
pub attrs: Option<HashMap<String, Option<String>>>,
pub children: Option<Vec<Node>>,
}Expand description
This object represents a DOM element node.
Fields§
§tag: StringName of the DOM element. Available tags: a, aside, b, blockquote, br, code, em, figcaption, figure, h3, h4, hr, i, iframe, img, li, ol, p, pre, s, strong, u, ul, video.
attrs: Option<HashMap<String, Option<String>>>Optional. Attributes of the DOM element.
Key of object represents name of attribute, value represents value of attribute.
Available attributes: href, src.
children: Option<Vec<Node>>Optional. List of child nodes for the DOM element.
Trait Implementations§
Source§impl Clone for NodeElement
impl Clone for NodeElement
Source§fn clone(&self) -> NodeElement
fn clone(&self) -> NodeElement
Returns a duplicate of the value. Read more
1.0.0 · 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 NodeElement
impl Debug for NodeElement
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