From 2244d148b2d67caba0d443076ecb479f37c571d2 Mon Sep 17 00:00:00 2001 From: Kyler Chin <7539174+kylerchin@users.noreply.github.com> Date: Mon, 1 Apr 2024 07:30:33 -0700 Subject: [PATCH] Apply serialize and deserialise to trip freq model --- src/models.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models.rs b/src/models.rs index ec092cfc..e7ce6b56 100644 --- a/src/models.rs +++ b/src/models.rs @@ -189,7 +189,7 @@ pub struct Trip { //Attempted custom type, still doesn't work for some reason //Error inserting trip: SerializationError(FailedToLookupTypeError(PgMetadataCacheKey { schema: Some("public"), type_name: "trip_frequency" })) //Even though the type clearly exists -#[derive(Clone, Debug, PartialEq, AsExpression)] +#[derive(Clone, Debug, PartialEq, AsExpression, Serialize, Deserialize)] #[diesel(sql_type = crate::custom_pg_types::TripFrequency)] pub struct TripFrequencyModel { pub start_time: i32,