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: DocsDocumentation 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: DocumentIdThe document that this interface belongs to.