pub struct ComponentRegistration<'a> {
pub tag_name: &'a str,
pub html_content: &'a str,
pub css_content: Option<&'a str>,
pub is_client_owned: bool,
}Expand description
Inputs for registering a component from content strings.
Grouping the fields keeps ComponentRegistry::register_component a
single-argument call without growing its arity.
Fields§
§tag_name: &'a strThe custom element tag name (must contain a hyphen).
html_content: &'a strThe component’s HTML template content.
css_content: Option<&'a str>The component’s CSS content, if any.
is_client_owned: boolWhether authored browser code owns this custom element tag.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ComponentRegistration<'a>
impl<'a> Clone for ComponentRegistration<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComponentRegistration<'a>
impl<'a> RefUnwindSafe for ComponentRegistration<'a>
impl<'a> Send for ComponentRegistration<'a>
impl<'a> Sync for ComponentRegistration<'a>
impl<'a> Unpin for ComponentRegistration<'a>
impl<'a> UnsafeUnpin for ComponentRegistration<'a>
impl<'a> UnwindSafe for ComponentRegistration<'a>
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