then in the WhereInput serialization it tries to call to_string on a Vec<HeroId>
Self::RebelsConfigIdHeroIdsEquals(rebels_config_id, hero_ids) => (
"rebelsConfigId_hero_ids",
::prisma_client_rust::SerializedWhereValue::Object(vec![
(
rebels_config_id::NAME.to_string(),
::prisma_client_rust::PrismaValue::Int(rebels_config_id as i64),
),
(
hero_ids::NAME.to_string(),
::prisma_client_rust::PrismaValue::Enum(hero_ids.to_string()), // this line
),
]),
),
`std::vec::Vec<prisma::HeroId>` cannot be formatted with the default formatter
400 | pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {
| ------------------------------------------------------------------------------------------------
| |
| doesn't satisfy `std::vec::Vec<prisma::HeroId>: ToString`
| doesn't satisfy `std::vec::Vec<prisma::HeroId>: std::fmt::Display`
|
= note: the following trait bounds were not satisfied:
`std::vec::Vec<prisma::HeroId>: std::fmt::Display`
which is required by `std::vec::Vec<prisma::HeroId>: ToString`
`[prisma::HeroId]: std::fmt::Display`
which is required by `[prisma::HeroId]: ToString`
using arrays of enum in the schema causes a vec to be generated
then in the
WhereInput
serialization it tries to callto_string
on aVec<HeroId>