From d5033ccf449daaca1c499e017576c1405152bf97 Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 30 Jul 2023 20:19:25 +0200 Subject: [PATCH] fix ci --- src/model/boat.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/model/boat.rs b/src/model/boat.rs index 3158688..1e510eb 100644 --- a/src/model/boat.rs +++ b/src/model/boat.rs @@ -1,6 +1,5 @@ -use chrono::serde; +use rocket::serde::{Deserialize, Serialize}; use rocket::FromForm; -use serde::{Deserialize, Serialize}; use sqlx::{FromRow, SqlitePool}; #[derive(FromRow, Debug, Serialize, Deserialize)] @@ -20,12 +19,14 @@ pub struct Boat { external: bool, } +#[derive(Serialize, Deserialize)] pub enum BoatDamage { None, Light, Locked, } +#[derive(Serialize, Deserialize)] pub struct BoatWithDetails { #[serde(flatten)] boat: Boat,