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 document: DocumentId,
}
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.
document: DocumentId
The document that this interface belongs to.