You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: dna_properties.rs
    path of file: ./repos/holochain/crates/hdk_derive/src
    
    the code of the file until where you have to start completion: use proc_macro::TokenStream;
use proc_macro_error::abort;
use syn::parse_macro_input;
use syn::Item;
use syn::ItemStruct;

pub fn build(_attrs: TokenStream, input: TokenStream) -> TokenStream {
    let input = parse_macro_input!(input as Item);
    let ident = match &input {
        Item::Struct(
    
pub fn build(_attrs: TokenStream, input: TokenStream) -> TokenStream {
    let input = parse_macro_input!(input as Item);
    let ident = match &input {
        Item::Struct(ItemStruct { ident, .. }) => ident,
        _ => abort!(input, "dna_properties macro can only be used on Structs"),
    };

    let output = quote::quote! {
        #[derive(Serialize, Deserialize, SerializedBytes, Debug)]
        #input

        impl TryFromDnaProperties for #ident {
            type Error = WasmError;

            fn try_from_dna_properties() -> Result<#ident, WasmError> {
                #ident::try_from(dna_info()?.modifiers.properties)
                    .map_err(|_| wasm_error!(WasmErrorInner::Guest(format!("Failed to deserialize DNA properties into {}", std::any::type_name::<#ident>()))))
            }
        }
    };
    output.into()
}