pub struct DesktopBundleConfig {
pub bundle_dir: PathBuf,
pub state: Option<Value>,
pub max_asset_bytes: u64,
pub route_state: RouteStateRegistry,
pub api_routes: ApiRouteRegistry,
pub token_css: Option<HashMap<String, String>>,
}Expand description
Bundle-backed desktop runtime configuration.
Use this from app-specific packaged runners that load protocol.bin and
immutable assets from a bundle while registering Rust-owned route state and
typed IPC handlers in the executable.
Fields§
§bundle_dir: PathBufDesktop bundle directory created by webui desktop build.
state: Option<Value>Optional Rust-owned startup state. When omitted, bundled state.json is used.
max_asset_bytes: u64Maximum file length delivered by one protocol response.
route_state: RouteStateRegistryRust route state providers.
api_routes: ApiRouteRegistryRust custom-protocol API handlers.
token_css: Option<HashMap<String, String>>Optional pre-resolved design token CSS keyed by theme name.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DesktopBundleConfig
impl !UnwindSafe for DesktopBundleConfig
impl Freeze for DesktopBundleConfig
impl Send for DesktopBundleConfig
impl Sync for DesktopBundleConfig
impl Unpin for DesktopBundleConfig
impl UnsafeUnpin for DesktopBundleConfig
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