pub struct SimpleElement<'a, T: Render> {
pub tag_name: &'a str,
pub attributes: Option<HashMap<&'a str, Cow<'a, str>>>,
pub contents: Option<T>,
}
Expand description
Simple HTML element tag
Fields§
§tag_name: &'a str
the HTML tag name, like html
, head
, body
, link
…
attributes: Option<HashMap<&'a str, Cow<'a, str>>>
§contents: Option<T>
Trait Implementations§
Source§impl<'a, T: Render> From<SimpleElement<'a, T>> for Response
impl<'a, T: Render> From<SimpleElement<'a, T>> for Response
Source§fn from(s: SimpleElement<'a, T>) -> Self
fn from(s: SimpleElement<'a, T>) -> Self
Converts to this type from the input type.
Source§impl<'a, T: Render> From<SimpleElement<'a, T>> for Result
impl<'a, T: Render> From<SimpleElement<'a, T>> for Result
Source§fn from(s: SimpleElement<'a, T>) -> Self
fn from(s: SimpleElement<'a, T>) -> Self
Converts to this type from the input type.
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