duid_core/core/html/
elements.rs1use crate::core::html::{
2 attributes::Attribute,
3 nodes::Node
4};
5
6
7
8#[derive(Debug, Clone, PartialEq)]
9pub struct Element<MSG>
10{
11 pub tag: &'static str,
12 pub namespace: Option<&'static str>,
13 pub props: Vec<Attribute<MSG>>,
14 pub children: Vec<Node<MSG>>
15}
16
17
18#[derive(Debug, Clone, PartialEq)]
19pub struct Leaf<MSG> {
20 pub tag: &'static str,
21 pub namespace: Option<&'static str>,
22 pub props: Vec<Attribute<MSG>>,
23 pub value: String,
24}