pub struct SimpleElement<'a, T: Render> {
pub tag_name: &'a str,
pub attributes: Option<HashMap<&'a str, &'a str>>,
pub contents: Option<T>,
}Expand description
Simple HTML element tag
Fields§
§tag_name: &'a strthe HTML tag name, like html, head, body, link…
attributes: Option<HashMap<&'a str, &'a str>>§contents: Option<T>Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for SimpleElement<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for SimpleElement<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for SimpleElement<'a, T>where
T: Send,
impl<'a, T> Sync for SimpleElement<'a, T>where
T: Sync,
impl<'a, T> Unpin for SimpleElement<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for SimpleElement<'a, T>where
T: UnwindSafe,
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