pub enum WebNode {
Element {
id: u64,
tag: String,
attributes: BTreeMap<String, String>,
children: Vec<u64>,
},
Text {
id: u64,
text: String,
},
}Expand description
A single serialized DOM node. id is a synthetic stable key assigned by the
recorder; it is NOT the element’s DOM id attribute.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WebNode
impl<'de> Deserialize<'de> for WebNode
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 WebNode
Auto Trait Implementations§
impl Forget for WebNode
impl Freeze for WebNode
impl Move for WebNode
impl RefUnwindSafe for WebNode
impl Send for WebNode
impl Sync for WebNode
impl Unpin for WebNode
impl UnsafeUnpin for WebNode
impl UnwindSafe for WebNode
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