INNER CODE UNIT · Rust
enum_response
google/tarpc · plugins/src/lib.rs:682
fn enum_response(&self) -> TokenStream2 {
let &Self {
derives,
vis,
response_ident,
camel_case_idents,
return_types,
..
} = self;
quote! {
/// The response sent over the wire from the server to the client.
#[allow(missing_docs)]
#[derive(Debug)]
#derives
#vis enum #response_ident {
#( #camel_case_idents(#return_types) ),*
}