pub struct ComponentDef {
pub name: &'static str,
pub props: &'static [PropDef],
pub description: &'static str,
}Expand description
A component definition.
Equivalent to TS DefinedComponent from defineComponent().
Ref: packages/react-lang/src/library.ts defineComponent()
Fields§
§name: &'static strComponent name (PascalCase, used in OpenUI Lang as TypeName(...))
props: &'static [PropDef]Ordered list of props (order defines positional argument mapping)
description: &'static strHuman-readable description shown in the prompt
Auto Trait Implementations§
impl Freeze for ComponentDef
impl RefUnwindSafe for ComponentDef
impl Send for ComponentDef
impl Sync for ComponentDef
impl Unpin for ComponentDef
impl UnsafeUnpin for ComponentDef
impl UnwindSafe for ComponentDef
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