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: partial_unchecked.rs
    path of file: ./repos/prisma-client-rust/crates/generator-macros/src
    
    the code of the file until where you have to start completion: use proc_macro2::{Ident, TokenStream};
use quote::quote;
use syn::{
    bracketed,
    parse::{Parse, ParseStream},
    parse_macro_input,
    punctuated::Punctuated,
    ItemStruct, Path, Token,
};

struct Input {
    dollar_crate: Ident,
    model_module: Path,
    data_struct: ItemStruct,
    struct_name: Ident,
    selection: Punctuated<Ident, Token![,]>,
}

impl Parse for Input {
    fn parse(input: ParseStream) -> syn::Result<Self> {
        Ok(Self {
            dollar_crate: input.parse()?,
            model_module: {
                input.parse::<Token![,]>()?;
                input.parse()?
            },
            data_struct: {
                input.parse::<Token![,]>()?;
                input.parse()?
            },
            struct_name: {
                input.parse::<Token![,]>()?;
                
    
pub fn proc_macro(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
    let Input {
        dollar_crate,
        model_module,
        data_struct,
        struct_name,
        selection,
    } = parse_macro_input!(input as Input);

    let fields = data_struct
        .fields
        .iter()
        .filter(|f| selection.iter().any(|s| s == f.ident.as_ref().unwrap()))
        .map(|field| {
            let attrs = &field.attrs;
            let ident = &field.ident;
            let ty = &field.ty;

            let specta_attrs = cfg!(feature = "specta").then(|| quote!(#[specta(optional)]));

            quote! {
                #(#attrs)*
                #specta_attrs
                pub #ident: Option<#dollar_crate::#ty>
            }
        });

    let specta_attrs = cfg!(feature = "specta").then(|| {
        quote! {
            #[derive(::prisma_client_rust::specta::Type)]
            #[specta(crate = "prisma_client_rust::specta")]
        }
    });

    let selection = selection.iter().collect::<Vec<_>>();

    quote! {
        #[derive(serde::Deserialize)]
        #specta_attrs
        #[allow(unused)]
        pub struct #struct_name {
           #(#fields),*
        }

        impl #struct_name {
            pub fn to_params(self) -> Vec<#dollar_crate::#model_module::UncheckedSetParam> {
                [
                    #(self.#selection.map(#dollar_crate::#model_module::#selection::set)),*
                ].into_iter().flatten().collect()
            }
        }
    }
    .into()
}