pub struct Component {
pub tag_name: String,
pub html_content: String,
pub css_content: Option<String>,
pub css_tokens: Vec<String>,
pub source_path: PathBuf,
pub class_name: Option<String>,
}Expand description
Represents a web component in the registry.
Fields§
§tag_name: StringThe custom element tag name (e.g., “hello-world”)
html_content: StringThe HTML content of the component
css_content: Option<String>The CSS content of the component, if any
css_tokens: Vec<String>CSS custom property token names extracted from this component’s CSS
(sorted, deduplicated, without -- prefix).
source_path: PathBufThe file path where this component is defined
class_name: Option<String>The class name that implements this component (if available)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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