Struct wit_parser::Interface
source · pub struct Interface {
pub name: Option<String>,
pub docs: Docs,
pub types: IndexMap<String, TypeId>,
pub functions: IndexMap<String, Function>,
pub package: Option<PackageId>,
}
Fields§
§name: Option<String>
Optionally listed name of this interface.
This is None
for inline interfaces in worlds.
docs: Docs
Documentation associated with this interface.
types: IndexMap<String, TypeId>
Exported types from this interface.
Export names are listed within the types themselves. Note that the
export name here matches the name listed in the TypeDef
.
functions: IndexMap<String, Function>
Exported functions from this interface.
package: Option<PackageId>
The package that owns this interface.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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