This commit is contained in:
philipp 2023-07-30 20:19:25 +02:00
parent aeefd9e43f
commit d5033ccf44

View File

@ -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,