Create the payload ident: MyStruct => MyStructPayload
(original: &syn::Ident)
| 10 | |
| 11 | /// Create the payload ident: MyStruct => MyStructPayload |
| 12 | pub(super) fn payload_ident(original: &syn::Ident) -> syn::Ident { |
| 13 | format_ident!("{}Payload", original) |
| 14 | } |
| 15 | |
| 16 | pub(super) fn generate_struct(input: &syn::DeriveInput) -> proc_macro2::TokenStream { |
| 17 | let ident = &input.ident; |
no outgoing calls
no test coverage detected