DeriveEntityModel supports attribute type of Vec<u8>

This commit is contained in:
Billy Chan 2021-09-10 17:11:19 +08:00
parent f65513eadf
commit ba276cdde5
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -167,6 +167,7 @@ pub fn expand_derive_entity_model(data: Data, attrs: Vec<Attribute>) -> syn::Res
"Uuid" => quote! { Uuid },
"Json" => quote! { Json },
"Decimal" => quote! { Decimal },
"Vec<u8>" => quote! { Binary },
_ => {
return Err(Error::new(
field.span(),