#[repr(C)]pub struct ComponentLibrary {
pub name: AzString,
pub version: AzString,
pub description: AzString,
pub components: ComponentDefVec,
pub exportable: bool,
pub modifiable: bool,
pub data_models: ComponentDataModelVec,
pub enum_models: ComponentEnumModelVec,
}Expand description
A named collection of component definitions
Fields§
§name: AzStringLibrary identifier, e.g. “builtin”, “shadcn”, “myproject”
version: AzStringVersion string
description: AzStringHuman-readable description
components: ComponentDefVecThe components in this library
exportable: boolWhether this library can be exported (false for builtin/compiled)
modifiable: boolWhether this library can be modified by the user (add/remove/edit components). False for builtin and compiled libraries. True for user-created libraries.
data_models: ComponentDataModelVecNamed data model types defined by this library.
Components reference these by name in their field_type.
enum_models: ComponentEnumModelVecNamed enum types defined by this library.
Components reference these via ComponentFieldType::EnumRef(name).
Trait Implementations§
Source§impl Clone for ComponentLibrary
impl Clone for ComponentLibrary
Source§fn clone(&self) -> ComponentLibrary
fn clone(&self) -> ComponentLibrary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComponentLibrary
impl Debug for ComponentLibrary
Source§impl Extend<ComponentLibrary> for ComponentLibraryVec
impl Extend<ComponentLibrary> for ComponentLibraryVec
Source§fn extend<T: IntoIterator<Item = ComponentLibrary>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = ComponentLibrary>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<ComponentLibrary> for ComponentLibraryVec
impl FromIterator<ComponentLibrary> for ComponentLibraryVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ComponentLibrary>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ComponentLibrary>,
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl Freeze for ComponentLibrary
impl RefUnwindSafe for ComponentLibrary
impl Send for ComponentLibrary
impl Sync for ComponentLibrary
impl Unpin for ComponentLibrary
impl UnsafeUnpin for ComponentLibrary
impl UnwindSafe for ComponentLibrary
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