pilota_thrift_parser/descriptor/function.rs
1use faststr::FastStr;
2
3use super::{Annotations, Field, Ident, Type};
4
5#[derive(Debug)]
6pub struct Function {
7 pub name: Ident,
8 pub oneway: bool,
9 pub result_type: Type,
10 pub arguments: Vec<Field>,
11 pub throws: Vec<Field>, // throws as an exception
12 pub annotations: Annotations,
13 pub leading_comments: FastStr,
14 pub trailing_comments: FastStr,
15}