#[non_exhaustive]pub struct WitInput {
pub path: PathBuf,
pub world: Option<String>,
}Expand description
A world that a script engine must support.
Construct inputs with WitInput::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.path: PathBufPath to a WIT file or directory.
world: Option<String>World to select within the package; the package’s only world when None.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WitInput
impl RefUnwindSafe for WitInput
impl Send for WitInput
impl Sync for WitInput
impl Unpin for WitInput
impl UnsafeUnpin for WitInput
impl UnwindSafe for WitInput
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