pub enum AttrValue {
Static(String),
Dynamic {
signal: SignalId,
format: Option<String>,
},
Handler(HandlerRef),
Bool(bool),
PreventDefault(String),
StopPropagation(String),
}Variants§
Static(String)
Plain string attribute.
Dynamic
Reactive attribute bound to a signal.
Handler(HandlerRef)
Event handler (onClick, onInput, …). Resolved at SSR time to a
HandlerRef pointing at a JS chunk.
Bool(bool)
Boolean attribute that is omitted when false.
PreventDefault(String)
Declarative preventDefault for event handlers (async-safe).
StopPropagation(String)
Declarative stopPropagation for event handlers (async-safe).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AttrValue
impl<'de> Deserialize<'de> for AttrValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AttrValue
impl RefUnwindSafe for AttrValue
impl Send for AttrValue
impl Sync for AttrValue
impl Unpin for AttrValue
impl UnsafeUnpin for AttrValue
impl UnwindSafe for AttrValue
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