This commit is contained in:
parent
6c54873ca2
commit
dd4cb7fcc6
11 changed files with 36 additions and 26 deletions
|
@ -61,10 +61,10 @@ pub fn relation(args: TokenStream, input: TokenStream) -> TokenStream {
|
|||
let relation_name = struct_name.to_string().to_case(Case::Snake);
|
||||
|
||||
let expanded = quote! {
|
||||
#[derive(owl::Serialize, owl::Deserialize, Default)]
|
||||
#[derive(owl::Serialize, owl::Deserialize, Default, Clone)]
|
||||
#input_struct
|
||||
|
||||
#[derive(owl::Deserialize, owl::Serialize, Debug)]
|
||||
#[derive(owl::Deserialize, owl::Serialize, Debug, Clone)]
|
||||
pub struct #struct_ref_name {
|
||||
pub id: Id,
|
||||
pub inner: owl::db::relation::RelationReference
|
||||
|
@ -166,7 +166,7 @@ pub fn model(_: TokenStream, input: TokenStream) -> TokenStream {
|
|||
let relation_name = struct_name.to_string().to_case(Case::Snake);
|
||||
|
||||
let expanded = quote! {
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(serde::Serialize, serde::Deserialize, Clone)]
|
||||
#input_struct
|
||||
impl owl::db::store::Saveable for #struct_name {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue