| 970 | #[cfg(feature = "utoipa")] |
| 971 | impl ToSchema<'_> for EntityQuerySortingRecord<'_> { |
| 972 | fn schema() -> (&'static str, RefOr<Schema>) { |
| 973 | ( |
| 974 | "EntityQuerySortingRecord", |
| 975 | Schema::Object( |
| 976 | schema::ObjectBuilder::new() |
| 977 | .property("path", Ref::from_schema_name("EntityQuerySortingPath")) |
| 978 | .required("path") |
| 979 | .property("ordering", Ref::from_schema_name("Ordering")) |
| 980 | .required("ordering") |
| 981 | .property("nulls", Ref::from_schema_name("NullOrdering")) |
| 982 | .required("nulls") |
| 983 | .build(), |
| 984 | ) |
| 985 | .into(), |
| 986 | ) |
| 987 | } |
| 988 | } |
| 989 | |
| 990 | impl EntityQuerySortingRecord<'_> { |