in dubbo-build/src/prost.rs [220:242]
fn methods(&self) -> Vec<Self::Method> {
let mut ms = Vec::new();
for m in &self.inner.methods[..] {
ms.push(DubboMethod::new(Method {
name: m.name.clone(),
proto_name: m.proto_name.clone(),
comments: prost_build::Comments {
leading_detached: m.comments.leading_detached.clone(),
leading: m.comments.leading.clone(),
trailing: m.comments.trailing.clone(),
},
input_type: m.input_type.clone(),
output_type: m.output_type.clone(),
input_proto_type: m.input_proto_type.clone(),
output_proto_type: m.output_proto_type.clone(),
options: m.options.clone(),
client_streaming: m.client_streaming,
server_streaming: m.server_streaming,
}))
}
ms
}