pub struct Library {
pub root: &'static str,
pub components: Vec<ComponentDef>,
pub groups: Vec<ComponentGroup>,
}Expand description
The full component library definition.
Ref: packages/react-lang/src/library.ts Library interface
Fields§
§root: &'static strRoot component name (entry point for root = Root(...))
components: Vec<ComponentDef>All component definitions
groups: Vec<ComponentGroup>Component groups for organized prompt output
Auto Trait Implementations§
impl Freeze for Library
impl RefUnwindSafe for Library
impl Send for Library
impl Sync for Library
impl Unpin for Library
impl UnsafeUnpin for Library
impl UnwindSafe for Library
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