pub struct ComponentImport {
pub local_name: String,
pub source: String,
pub default: bool,
pub sfc: Option<Sfc>,
}Expand description
Represents an imported component
Fields§
§local_name: StringThe local name used in the template (e.g., “MyButton”)
source: StringThe source file path (e.g., “./components/Button.vx”)
default: boolWhether this is a default import
sfc: Option<Sfc>The parsed SFC (loaded lazily)
Trait Implementations§
Source§impl Clone for ComponentImport
impl Clone for ComponentImport
Auto Trait Implementations§
impl Freeze for ComponentImport
impl RefUnwindSafe for ComponentImport
impl Send for ComponentImport
impl Sync for ComponentImport
impl Unpin for ComponentImport
impl UnsafeUnpin for ComponentImport
impl UnwindSafe for ComponentImport
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