pub struct ApiWorld {
pub name: String,
pub doc: Option<String>,
pub imports: Vec<String>,
pub exports: Vec<String>,
pub export_functions: Vec<ApiFunction>,
pub import_functions: Vec<ApiFunction>,
}Expand description
One WIT world — a bundle of imported/exported interfaces a component targets.
Fields§
§name: StringKebab-case world name, e.g. picker-source-plugin.
doc: Option<String>The world’s /// doc comment, if any.
imports: Vec<String>Interface names the world imports (guest → host), sorted.
exports: Vec<String>Interface names the world exports (guest implements), sorted.
export_functions: Vec<ApiFunction>Freestanding functions the world exports — the guest’s entry points
(register-grammar, register-picker-sources, …), in WIT source
order. Not part of any interface, so they appear nowhere else in the
catalog.
import_functions: Vec<ApiFunction>Freestanding functions the world imports from the host, in source order.
Trait Implementations§
impl Eq for ApiWorld
impl StructuralPartialEq for ApiWorld
Auto Trait Implementations§
impl Freeze for ApiWorld
impl RefUnwindSafe for ApiWorld
impl Send for ApiWorld
impl Sync for ApiWorld
impl Unpin for ApiWorld
impl UnsafeUnpin for ApiWorld
impl UnwindSafe for ApiWorld
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