From 0bc6fdbc2b718ba14af9bf6a8c8bec5dd886fb53 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Mon, 24 Apr 2023 12:05:04 +0800 Subject: [PATCH] CHANGELOG --- CHANGELOG.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98c2f96e6..94a660e23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -279,7 +279,27 @@ CREATE TABLE users_saved_bills ### Enhancements * Re-export `sea_orm::ConnectionTrait` in `sea_orm_migration::prelude` https://github.com/SeaQL/sea-orm/pull/1577 -* Support generic structs in `FromQueryResult` derive macro https://github.com/SeaQL/sea-orm/pull/1464 +* Support generic structs in `FromQueryResult` derive macro https://github.com/SeaQL/sea-orm/pull/1464, https://github.com/SeaQL/sea-orm/pull/1603 +```rs +#[derive(FromQueryResult)] +struct GenericTest { + foo: i32, + bar: T, +} +``` +```rs +trait MyTrait { + type Item: TryGetable; +} + +#[derive(FromQueryResult)] +struct TraitAssociateTypeTest +where + T: MyTrait, +{ + foo: T::Item, +} +``` ### Bug Fixes