DeriveEntityModel
supports attribute type of Vec<u8>
This commit is contained in:
parent
f65513eadf
commit
ba276cdde5
@ -167,6 +167,7 @@ pub fn expand_derive_entity_model(data: Data, attrs: Vec<Attribute>) -> syn::Res
|
|||||||
"Uuid" => quote! { Uuid },
|
"Uuid" => quote! { Uuid },
|
||||||
"Json" => quote! { Json },
|
"Json" => quote! { Json },
|
||||||
"Decimal" => quote! { Decimal },
|
"Decimal" => quote! { Decimal },
|
||||||
|
"Vec<u8>" => quote! { Binary },
|
||||||
_ => {
|
_ => {
|
||||||
return Err(Error::new(
|
return Err(Error::new(
|
||||||
field.span(),
|
field.span(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user