doc(interface-types) Improve documentation of the ast module.

This commit is contained in:
Ivan Enderlin 2020-02-10 15:44:28 +01:00
parent 57692f0458
commit 8ec4eb429e

View File

@ -80,11 +80,16 @@ pub struct Import<'input> {
pub output_types: Vec<InterfaceType>,
}
/// Represents a type.
/// Represents a structural type.
#[derive(PartialEq, Debug)]
pub struct Type<'input> {
/// The type name.
pub name: &'input str,
/// The field names.
pub fields: Vec<&'input str>,
/// The field types.
pub types: Vec<InterfaceType>,
}
@ -151,7 +156,7 @@ pub struct Forward<'input> {
/// definition.
#[derive(PartialEq, Debug)]
pub struct Interfaces<'input> {
/// All the exports.
/// All the exported functions.
pub exports: Vec<Export<'input>>,
/// All the types.
@ -160,7 +165,7 @@ pub struct Interfaces<'input> {
/// All the imported functions.
pub imports: Vec<Import<'input>>,
/// All the exported functions.
/// All the adapters.
pub adapters: Vec<Adapter<'input>>,
/// All the forwarded functions.