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: active_enum_display.rs
    path of file: ./repos/sea-orm/sea-orm-macros/src/derives
    
    the code of the file until where you have to start completion: use proc_macro2::TokenStream;
use quote::{quote, quote_spanned, ToTokens};
use syn::{LitInt, LitStr};

enum Error {
    InputNotEnum,
    Syn(syn::Error),
}

struct Display {
    ident: syn::Ident,
    variants: Vec<DisplayVariant>,
}

struct DisplayVariant {
    ident: syn::Ident,
    display_value: TokenStream,
}

impl Display {
    fn new(input: syn::DeriveInput) -> Result<Self, Error> {
 
    
    fn impl_active_enum_display(&self) -> TokenStream {
        let Self { ident, variants } = self;

        let variant_idents: Vec<_> = variants
            .iter()
            .map(|variant| variant.ident.clone())
            .collect();

        let variant_display: Vec<_> = variants
            .iter()
            .map(|variant| variant.display_value.to_owned())
            .collect();

        quote!(
            #[automatically_derived]
            impl std::fmt::Display for #ident {
                fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
                    write!(f, "{}", match self {
                        #( Self::#variant_idents => #variant_display, )*
                    })
                }
            }
        )
    }