pub struct BuildOptions {
pub app_dir: PathBuf,
pub entry: String,
pub css: CssStrategy,
pub dom: DomStrategy,
pub plugin: Option<Plugin>,
pub components: Vec<String>,
pub css_file_name_template: String,
pub css_public_base: Option<String>,
}Expand description
Options for building a WebUI application.
Fields§
§app_dir: PathBufPath to the application folder containing templates.
entry: StringEntry HTML file name (e.g., "index.html").
css: CssStrategyCSS delivery strategy for component stylesheets.
dom: DomStrategyDOM strategy for component rendering (shadow or light).
plugin: Option<Plugin>Framework plugin to load.
components: Vec<String>Additional component sources (npm packages or local paths).
css_file_name_template: StringLink-mode CSS filename template using [name], [hash], and [ext].
Ignored unless css == CssStrategy::Link.
css_public_base: Option<String>Optional URL/base-path prefix for Link-mode css_href values.
When set, emitted protocol hrefs become <base>/<filename>.
Trait Implementations§
Source§impl Clone for BuildOptions
impl Clone for BuildOptions
Source§fn clone(&self) -> BuildOptions
fn clone(&self) -> BuildOptions
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 BuildOptions
impl Debug for BuildOptions
Auto Trait Implementations§
impl Freeze for BuildOptions
impl RefUnwindSafe for BuildOptions
impl Send for BuildOptions
impl Sync for BuildOptions
impl Unpin for BuildOptions
impl UnsafeUnpin for BuildOptions
impl UnwindSafe for BuildOptions
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