pub enum JsxAttributeValue {
StringLiteral(String),
ExpressionContainer(Option<Expression>),
Element(Box<JsxElement>),
Fragment(Box<JsxFragment>),
}Expand description
Represents the value of a JSX attribute.
Variants§
StringLiteral(String)
A string literal value.
ExpressionContainer(Option<Expression>)
An expression container value ({expression}).
Element(Box<JsxElement>)
A JSX element value.
Fragment(Box<JsxFragment>)
A JSX fragment value.
Trait Implementations§
Source§impl Clone for JsxAttributeValue
impl Clone for JsxAttributeValue
Source§fn clone(&self) -> JsxAttributeValue
fn clone(&self) -> JsxAttributeValue
Returns a duplicate 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 JsxAttributeValue
impl Debug for JsxAttributeValue
Source§impl<'de> Deserialize<'de> for JsxAttributeValue
impl<'de> Deserialize<'de> for JsxAttributeValue
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 JsxAttributeValue
impl RefUnwindSafe for JsxAttributeValue
impl Send for JsxAttributeValue
impl Sync for JsxAttributeValue
impl Unpin for JsxAttributeValue
impl UnsafeUnpin for JsxAttributeValue
impl UnwindSafe for JsxAttributeValue
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