pub struct Package {
pub name: PackageName,
pub docs: Docs,
pub interfaces: IndexMap<String, InterfaceId>,
pub worlds: IndexMap<String, WorldId>,
}
Expand description
A WIT package within a Resolve
.
A package is a collection of interfaces and worlds. Packages additionally have a unique identifier that affects generated components and uniquely identifiers this particular package.
Fields§
§name: PackageName
A unique name corresponding to this package.
docs: Docs
Documentation associated with this package.
interfaces: IndexMap<String, InterfaceId>
All interfaces contained in this packaged, keyed by the interface’s name.
worlds: IndexMap<String, WorldId>
All worlds contained in this package, keyed by the world’s name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
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