pub struct ComponentInput {
pub name: Ident,
pub brace_token: Brace,
pub id: Option<Ident>,
pub properties: Vec<PropertyValue>,
pub children: Vec<ComponentInput>,
pub on_expressions: Vec<OnValue>,
pub matches: Vec<Match>,
pub visibility: Visibility,
}Expand description
Represents a component
ⓘ
Identifier
{
id: some_name
prop1: value1
Child
{
prop2: value2
}
}Identifier is stored in the name field, while prop1/value1 are in the list of properties.
And Child is in the list of children.
Fields§
§name: IdentName of the component
brace_token: Brace§id: Option<Ident>Identifier, used for storing in a variable
properties: Vec<PropertyValue>List of properties
children: Vec<ComponentInput>List of children
on_expressions: Vec<OnValue>List of on_expressions
matches: Vec<Match>List of of_matches
visibility: VisibilityVisibility of the component (not always applicable).
Trait Implementations§
Source§impl Debug for ComponentInput
impl Debug for ComponentInput
Source§impl Parse for ComponentInput
impl Parse for ComponentInput
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl !Send for ComponentInput
impl !Sync for ComponentInput
impl Freeze for ComponentInput
impl RefUnwindSafe for ComponentInput
impl Unpin for ComponentInput
impl UnsafeUnpin for ComponentInput
impl UnwindSafe for ComponentInput
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