[][src]Enum kagura::Html

pub enum Html<Msg> {
    Composable(Box<dyn Composable>),
    TextNode(String),
    ElementNode {
        tag_name: String,
        children: Vec<Html<Msg>>,
        attributes: Attributes,
        events: Events<Msg>,
    },
}

viritual html element

Variants

Composable(Box<dyn Composable>)
TextNode(String)
ElementNode

Fields of ElementNode

tag_name: Stringchildren: Vec<Html<Msg>>attributes: Attributesevents: Events<Msg>

Methods

impl<Msg> Html<Msg>[src]

pub fn component<M, S, B>(component: Component<M, S, B>) -> Self where
    M: 'static,
    S: 'static,
    B: 'static, 
[src]

Creates Html from component

pub fn unsafe_text(text: impl Into<String>) -> Self[src]

Creates Html from a non-validated text

pub fn node(
    tag_name: impl Into<String>,
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

Creates Html from element

pub fn a(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn abbr(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn address(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn area(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn article(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn aside(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn audio(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn b(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn bdi(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn bdo(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn blockquote(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn button(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn br(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn cite(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn caption(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn canvas(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn code(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn col(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn colgroup(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn datalist(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn details(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn dd(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn dfn(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn div(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn data(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn del(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn dl(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn dt(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn em(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn embed(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn fieldset(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn figcaption(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn figure(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn footer(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn form(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn h1(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn h2(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn h3(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn h4(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn h5(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn h6(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn header(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn hr(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn i(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn iframe(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn img(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn input(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn ins(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn kbd(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn label(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn legend(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn li(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn main(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn mark(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn map(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn menu(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn menuitem(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn meter(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn nav(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn object(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn ol(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn optgroup(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn option(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn output(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn p(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn param(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn picture(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn pre(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn progress(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn q(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn rb(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn rp(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn rt(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn rtc(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn rubu(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn s(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn samp(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn section(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn select(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn small(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn source(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn span(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn strong(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn sub(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn summary(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn sup(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn table(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn tbody(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn td(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn textarea(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn tfoot(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn th(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn thead(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn time(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn tr(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn track(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn u(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn ul(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn var(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn video(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

pub fn wbr(
    attributes: Attributes,
    events: Events<Msg>,
    children: Vec<Html<Msg>>
) -> Self
[src]

Auto Trait Implementations

impl<Msg> !Send for Html<Msg>

impl<Msg> Unpin for Html<Msg>

impl<Msg> !Sync for Html<Msg>

impl<Msg> !UnwindSafe for Html<Msg>

impl<Msg> !RefUnwindSafe for Html<Msg>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,