pub struct VElement {
pub tag: String,
pub attrs: HashMap<String, AttributeValue>,
pub events: Events,
pub children: Vec<VirtualNode>,
pub special_attributes: SpecialAttributes,
}
Fields§
§tag: String
The HTML tag, such as “div”
attrs: HashMap<String, AttributeValue>
HTML attributes such as id, class, style, etc
events: Events
Events that will get added to your real DOM element via .addEventListener
Events natively handled in HTML such as onclick, onchange, oninput and others
can be found in [VElement.known_events
]
children: Vec<VirtualNode>
The children of this VirtualNode
. So a
special_attributes: SpecialAttributes
Implementations§
Trait Implementations§
Source§impl From<VElement> for VirtualNode
impl From<VElement> for VirtualNode
Source§fn from(other: VElement) -> VirtualNode
fn from(other: VElement) -> VirtualNode
Converts to this type from the input type.
impl StructuralPartialEq for VElement
Auto Trait Implementations§
impl !Freeze for VElement
impl !RefUnwindSafe for VElement
impl !Send for VElement
impl !Sync for VElement
impl Unpin for VElement
impl !UnwindSafe for VElement
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