MCPcopy Create free account
hub / github.com/biblius/validify / payload_ident

Function payload_ident

validify_derive/src/payload.rs:12–14  ·  view source on GitHub ↗

Create the payload ident: MyStruct => MyStructPayload

(original: &syn::Ident)

Source from the content-addressed store, hash-verified

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

Callers 2

generate_structFunction · 0.85
impl_payloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected