#[non_exhaustive]pub struct EngineWorld {
pub wit: String,
pub world_name: String,
pub bootstrap: String,
pub imports: Vec<String>,
pub exports: Vec<String>,
}Expand description
A merged engine world and the bootstrap module that implements it.
Construct custom values with EngineWorld::builder.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.wit: StringSingle WIT document (with nested packages) that defines the engine world.
world_name: StringName of the engine world within wit.
bootstrap: StringJavaScript module to componentize as the engine.
imports: Vec<String>Specifiers a script may require, in world order.
exports: Vec<String>JavaScript export names of the engine world, excluding the script loader.
Implementations§
Source§impl EngineWorld
impl EngineWorld
Sourcepub fn builder() -> EngineWorldBuilder
pub fn builder() -> EngineWorldBuilder
Create an instance of EngineWorld using the builder syntax
Trait Implementations§
Source§impl Clone for EngineWorld
impl Clone for EngineWorld
Auto Trait Implementations§
impl Freeze for EngineWorld
impl RefUnwindSafe for EngineWorld
impl Send for EngineWorld
impl Sync for EngineWorld
impl Unpin for EngineWorld
impl UnsafeUnpin for EngineWorld
impl UnwindSafe for EngineWorld
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