Enum dioxus_rsx::ElementAttr
source · pub enum ElementAttr {
AttrText {
name: Ident,
value: IfmtInput,
},
AttrExpression {
name: Ident,
value: Expr,
},
CustomAttrText {
name: LitStr,
value: IfmtInput,
},
CustomAttrExpression {
name: LitStr,
value: Expr,
},
EventTokens {
name: Ident,
tokens: Expr,
},
}
Variants§
AttrText
attribute: "value"
AttrExpression
attribute: true
CustomAttrText
"attribute": "value"
CustomAttrExpression
"attribute": true
EventTokens
onclick: {}
Implementations§
Trait Implementations§
source§impl Clone for ElementAttr
impl Clone for ElementAttr
source§fn clone(&self) -> ElementAttr
fn clone(&self) -> ElementAttr
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ElementAttr
impl Debug for ElementAttr
source§impl Hash for ElementAttr
impl Hash for ElementAttr
source§impl PartialEq<ElementAttr> for ElementAttr
impl PartialEq<ElementAttr> for ElementAttr
source§fn eq(&self, other: &ElementAttr) -> bool
fn eq(&self, other: &ElementAttr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.