use sea_orm::{FromQueryResult, TryGetable}; #[derive(FromQueryResult)] struct SimpleTest { _foo: i32, _bar: String, } #[derive(FromQueryResult)] struct GenericTest { _foo: i32, _bar: T, } #[derive(FromQueryResult)] struct DoubleGenericTest { _foo: T, _bar: F, } #[derive(FromQueryResult)] struct BoundsGenericTest { _foo: T, } #[derive(FromQueryResult)] struct WhereGenericTest where T: TryGetable + Copy + Clone + 'static, { _foo: T, } #[derive(FromQueryResult)] struct AlreadySpecifiedBoundsGenericTest { _foo: T, } #[derive(FromQueryResult)] struct MixedGenericTest where F: TryGetable + Copy + Clone + 'static, { _foo: T, _bar: F, } trait MyTrait { type Item: TryGetable; } #[derive(FromQueryResult)] struct TraitAssociateTypeTest where T: MyTrait, { _foo: T::Item, } #[derive(FromQueryResult)] struct FromQueryAttributeTests { #[sea_orm(skip)] _foo: i32, _bar: String, }