pub struct JsBuildOptions {Show 13 fields
pub app_dir: String,
pub entry: Option<String>,
pub css: Option<String>,
pub dom: Option<String>,
pub plugin: Option<String>,
pub components: Option<Vec<String>>,
pub component_asset_roots: Option<Vec<String>>,
pub css_file_name_template: Option<String>,
pub css_public_base: Option<String>,
pub legal_comments: Option<String>,
pub theme: Option<String>,
pub projection_manifests: Option<Vec<String>>,
pub projection_manifest_objects: Option<Vec<JsProjectionManifest>>,
}Expand description
Build options for the webui build API.
Fields§
§app_dir: StringPath to the application folder containing templates.
entry: Option<String>Entry HTML file name (defaults to “index.html”).
css: Option<String>CSS mode: “link” (default) or “style”.
dom: Option<String>DOM strategy for component rendering: “shadow” (default) or “light”.
plugin: Option<String>Plugin identifier (see crate documentation for available identifiers).
components: Option<Vec<String>>Additional component sources (npm packages or local paths).
component_asset_roots: Option<Vec<String>>Root component tags emitted as static .webui.js ESM assets.
css_file_name_template: Option<String>Link-mode CSS filename template using [name], [hash], [ext].
css_public_base: Option<String>Optional base URL/path prefix for Link-mode css hrefs.
legal_comments: Option<String>Legal comment handling: “inline” (default) or “none”.
theme: Option<String>Design token theme: a JSON file path or npm package name.
projection_manifests: Option<Vec<String>>Projection manifest paths.
projection_manifest_objects: Option<Vec<JsProjectionManifest>>Inline manifest objects with their logical paths.
Trait Implementations§
Source§impl FromNapiValue for JsBuildOptions
impl FromNapiValue for JsBuildOptions
Source§unsafe fn from_napi_value(
env: napi_env,
napi_val: napi_value,
) -> Result<JsBuildOptions>
unsafe fn from_napi_value( env: napi_env, napi_val: napi_value, ) -> Result<JsBuildOptions>
This function called to convert napi values to native rust values Read more
fn from_unknown(value: Unknown<'_>) -> Result<Self, Error>
Source§impl ToNapiValue for JsBuildOptions
impl ToNapiValue for JsBuildOptions
Source§unsafe fn to_napi_value(
env: napi_env,
val: JsBuildOptions,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: JsBuildOptions, ) -> Result<napi_value>
This function called to convert rust values to napi values Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for JsBuildOptions
impl TypeName for JsBuildOptions
Source§impl ValidateNapiValue for JsBuildOptions
impl ValidateNapiValue for JsBuildOptions
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
This function called to validate whether napi value passed to rust is valid type. Read more
Auto Trait Implementations§
impl Freeze for JsBuildOptions
impl RefUnwindSafe for JsBuildOptions
impl Send for JsBuildOptions
impl Sync for JsBuildOptions
impl Unpin for JsBuildOptions
impl UnsafeUnpin for JsBuildOptions
impl UnwindSafe for JsBuildOptions
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more