[][src]Struct rust_fel::Props

pub struct Props {
    pub children: Option<Vec<Element>>,
    pub text: Option<String>,
    pub on_click: Option<ClosureProp>,
    pub mouse: Option<ClosureProp>,
    pub class_name: Option<String>,
    pub id: Option<String>,
    pub href: Option<String>,
    pub src: Option<String>,
    pub type_attr: Option<String>,
    pub role: Option<String>,
    pub data_cy: Option<String>,
}

A struct holding attributes for a Virtual DOM rust_fel::Element.
Elements can have children stored inside a std::vec::Vec.

Fields

children: Option<Vec<Element>>text: Option<String>on_click: Option<ClosureProp>mouse: Option<ClosureProp>class_name: Option<String>id: Option<String>href: Option<String>src: Option<String>type_attr: Option<String>role: Option<String>data_cy: Option<String>

Trait Implementations

impl Debug for Props[src]

impl Default for Props[src]

Auto Trait Implementations

impl !RefUnwindSafe for Props

impl !Send for Props

impl !Sync for Props

impl Unpin for Props

impl !UnwindSafe for Props

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.