mirror of
https://github.com/fluencelabs/interface-types
synced 2024-12-04 23:30:19 +00:00
doc(interface-types) Improve documentation of the ast
module.
This commit is contained in:
parent
57692f0458
commit
8ec4eb429e
11
src/ast.rs
11
src/ast.rs
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user