pub struct InstallParams {
pub manifest_id: String,
pub install_url_or_bundle_url: Option<String>,
}Expand description
Installs the given manifest identity, optionally using the given installUrlOrBundleUrl
IWA-specific install description: manifestId corresponds to isolated-app:// + web_package::SignedWebBundleId
File installation mode: The installUrlOrBundleUrl can be either file:// or http(s):// pointing to a signed web bundle (.swbn). In this case SignedWebBundleId must correspond to The .swbn file’s signing key.
Dev proxy installation mode: installUrlOrBundleUrl must be http(s):// that serves dev mode IWA. web_package::SignedWebBundleId must be of type dev proxy.
The advantage of dev proxy mode is that all changes to IWA automatically will be reflected in the running app without reinstallation.
To generate bundle id for proxy mode:
- Generate 32 random bytes.
- Add a specific suffix 0x00 at the end.
- Encode the entire sequence using Base32 without padding.
If Chrome is not in IWA dev mode, the installation will fail, regardless of the state of the allowlist. install
Fields§
§manifest_id: String§install_url_or_bundle_url: Option<String>The location of the app or bundle overriding the one derived from the manifestId.
Implementations§
Source§impl InstallParams
impl InstallParams
pub fn new(manifest_id: impl Into<String>) -> InstallParams
Source§impl InstallParams
impl InstallParams
pub fn builder() -> InstallParamsBuilder
Source§impl InstallParams
impl InstallParams
pub const IDENTIFIER: &'static str = "PWA.install"
Trait Implementations§
Source§impl Clone for InstallParams
impl Clone for InstallParams
Source§fn clone(&self) -> InstallParams
fn clone(&self) -> InstallParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Command for InstallParams
impl Command for InstallParams
Source§impl Debug for InstallParams
impl Debug for InstallParams
Source§impl<'de> Deserialize<'de> for InstallParams
impl<'de> Deserialize<'de> for InstallParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InstallParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InstallParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl<T> From<T> for InstallParams
impl<T> From<T> for InstallParams
Source§fn from(url: T) -> InstallParams
fn from(url: T) -> InstallParams
Source§impl Method for InstallParams
impl Method for InstallParams
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
DOM.removeNodeSource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
DOMSource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
removeNode