From 7775e780c87df8e9d78845512b07b6585a3be898 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Wed, 10 Apr 2024 16:33:25 +0800 Subject: [PATCH] `DerivePartialModel` macro attribute `entity` supports `syn::Type` as well (SeaQL/sea-orm#2137) --- SeaORM/docs/08-advanced-query/01-custom-select.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SeaORM/docs/08-advanced-query/01-custom-select.md b/SeaORM/docs/08-advanced-query/01-custom-select.md index 2dd87bcff66..a930bc419b4 100644 --- a/SeaORM/docs/08-advanced-query/01-custom-select.md +++ b/SeaORM/docs/08-advanced-query/01-custom-select.md @@ -194,6 +194,8 @@ You can define a partial model, and the corresponding columns will be automatica ```rust #[derive(DerivePartialModel, FromQueryResult)] #[sea_orm(entity = "User")] +// `DerivePartialModel` macro attribute `entity` supports `syn::Type` as well +#[sea_orm(entity = "::Entity")] struct PartialUser { pub id: i32, pub avatar: String,