pub struct TrunkWasmBundle {Show 19 fields
pub app_type: String,
pub order: Option<usize>,
pub js_url: String,
pub js_content_digest: Option<String>,
pub wasm_url: String,
pub wasm_content_digest: Option<String>,
pub wasm_size: u64,
pub initializer_url: Option<String>,
pub initializer_content_digest: Option<String>,
pub init_with_object: bool,
pub import_bindings: bool,
pub import_bindings_name: Option<String>,
pub compression_algorithm: Option<String>,
pub cross_origin: String,
pub inject_scripts: bool,
pub custom_script_pattern: Option<String>,
pub custom_preload_pattern: Option<String>,
pub pattern_parameters: BTreeMap<String, String>,
pub preloads: Vec<TrunkPreloadReference>,
}Expand description
Rust/WASM runtime bundle and initialization information.
Fields§
§app_type: Stringmain or worker.
order: Option<usize>Source HTML order, absent for Trunk’s implicit Cargo application.
js_url: StringExact wasm-bindgen JavaScript module URL.
js_content_digest: Option<String>SHA-256 content digest emitted by the current manifest schema.
wasm_url: StringExact WebAssembly module URL.
wasm_content_digest: Option<String>SHA-256 content digest emitted by the current manifest schema.
wasm_size: u64WebAssembly module size in bytes.
initializer_url: Option<String>Optional custom initializer module URL.
initializer_content_digest: Option<String>SHA-256 content digest emitted for an initializer by the current manifest schema.
init_with_object: boolWhether the wasm-bindgen initializer expects a module_or_path object.
import_bindings: boolWhether Rust exports are imported into the initializer.
import_bindings_name: Option<String>Optional global variable name for imported bindings.
compression_algorithm: Option<String>Optional decompression algorithm.
cross_origin: StringCross-origin mode used for loading resources.
inject_scripts: boolWhether Trunk injects the initializer into its HTML.
custom_script_pattern: Option<String>Optional Trunk initializer template.
custom_preload_pattern: Option<String>Optional Trunk preload template.
pattern_parameters: BTreeMap<String, String>Parameters available to Trunk’s custom templates.
preloads: Vec<TrunkPreloadReference>Preload references generated by Trunk’s SRI pipeline.
Trait Implementations§
Source§impl Clone for TrunkWasmBundle
impl Clone for TrunkWasmBundle
Source§fn clone(&self) -> TrunkWasmBundle
fn clone(&self) -> TrunkWasmBundle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TrunkWasmBundle
impl Debug for TrunkWasmBundle
Source§impl<'de> Deserialize<'de> for TrunkWasmBundle
impl<'de> Deserialize<'de> for TrunkWasmBundle
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TrunkWasmBundle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TrunkWasmBundle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for TrunkWasmBundle
Source§impl PartialEq for TrunkWasmBundle
impl PartialEq for TrunkWasmBundle
impl StructuralPartialEq for TrunkWasmBundle
Auto Trait Implementations§
impl Forget for TrunkWasmBundle
impl Freeze for TrunkWasmBundle
impl Move for TrunkWasmBundle
impl RefUnwindSafe for TrunkWasmBundle
impl Send for TrunkWasmBundle
impl Sync for TrunkWasmBundle
impl Unpin for TrunkWasmBundle
impl UnsafeUnpin for TrunkWasmBundle
impl UnwindSafe for TrunkWasmBundle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> FromFormData for Twhere
T: DeserializeOwned,
impl<T> FromFormData for Twhere
T: DeserializeOwned,
Source§fn from_event(ev: &Event) -> Result<T, FromFormDataError>
fn from_event(ev: &Event) -> Result<T, FromFormDataError>
submit event.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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