diff --git a/src/ast.rs b/src/ast.rs index 33609ad..4adf2f0 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -80,11 +80,16 @@ pub struct Import<'input> { pub output_types: Vec, } -/// 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, } @@ -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>, /// All the types. @@ -160,7 +165,7 @@ pub struct Interfaces<'input> { /// All the imported functions. pub imports: Vec>, - /// All the exported functions. + /// All the adapters. pub adapters: Vec>, /// All the forwarded functions.