Martin Berg Alstad eeab1257e3 InsertMany function for create trait.
Changed path to DateTimeInterval.

Changed lifetimes on derives with async_trait
2024-08-25 17:56:56 +02:00

15 lines
379 B
Rust

use proc_macro2::Ident;
use quote::quote;
use syn::Type;
pub(crate) struct PrimaryKey {
pub ident: Ident,
pub ty: Type,
}
pub(crate) fn return_type(output: proc_macro2::TokenStream) -> proc_macro2::TokenStream {
quote! {
std::pin::Pin<Box<dyn core::future::Future<Output = Result<#output, lib::diesel_crud_trait::CrudError>> + Send + 'async_trait>>
}
}