pub enum JsxChild {
JsxElement(Box<JsxElement>),
JsxFragment(Box<JsxFragment>),
JsxSelfClosingElement(Box<JsxSelfClosingElement>),
JsxText(String),
JsxExpressionContainer(Option<Expression>),
}Expand description
Represents a child of a JSX element or fragment.
Variants§
JsxElement(Box<JsxElement>)
A JSX element child.
JsxFragment(Box<JsxFragment>)
A JSX fragment child.
JsxSelfClosingElement(Box<JsxSelfClosingElement>)
A self-closing JSX element child.
JsxText(String)
Literal text within JSX.
JsxExpressionContainer(Option<Expression>)
A JSX expression container ({expression}).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JsxChild
impl<'de> Deserialize<'de> for JsxChild
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 JsxChild
impl RefUnwindSafe for JsxChild
impl Send for JsxChild
impl Sync for JsxChild
impl Unpin for JsxChild
impl UnsafeUnpin for JsxChild
impl UnwindSafe for JsxChild
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