pub struct ComponentFileSource {
pub tag_name: String,
pub html: ComponentFile,
pub css: Option<ComponentFile>,
pub is_client_owned: bool,
}Expand description
A component whose source selection and ownership have already been resolved.
Preparation must validate the owning package boundary and select optional styles and script ownership. Loading does not repeat those decisions.
Fields§
§tag_name: StringCustom element name used for registration.
html: ComponentFileSelected HTML template.
css: Option<ComponentFile>Selected stylesheet, or None when no stylesheet was found.
is_client_owned: boolWhether authored browser code owns the custom element.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComponentFileSource
impl RefUnwindSafe for ComponentFileSource
impl Send for ComponentFileSource
impl Sync for ComponentFileSource
impl Unpin for ComponentFileSource
impl UnsafeUnpin for ComponentFileSource
impl UnwindSafe for ComponentFileSource
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