-
-
Notifications
You must be signed in to change notification settings - Fork 688
Open
Copy link
Description
Description
DeriveEntityModel types (wrapped types) don't implement TryGetable trait when wrapped in a Vec, which is needed for postgres-array
Steps to Reproduce
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, DeriveValueType)]
pub struct GoodId(i32);
#[derive(FromQueryResult, Debug, Clone)]
pub struct TreeRow {
pub ingredient_path: Vec<GoodId>,
}Expected Behavior
no error
Actual Behavior
Error:
the trait bound `Vec<GoodID>: TryGetable` is not satisfied
the following other types implement trait `TryGetable`:
Vec<Braced>
Vec<Hyphenated>
Vec<JsonValue>
Vec<NaiveDate>
Vec<NaiveDateTime>
Vec<NaiveTime>
Vec<OffsetDateTime>
Vec<PrimitiveDateTime>
and 22 othersReproduces How Often
every time
Workarounds
manual implementation of the trait will work probably
Versions
this one:
e36eea4
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels