aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/db
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-12 20:54:00 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-12 20:54:00 +0200
commite69bd14f1d64b0d8b2438a40a069d3647c1edd73 (patch)
treefd16f12c56a9f51716e7908cb7180b892d01edc9 /planetwars-server/src/db
parent0b9a9f0eaafb68acb7896ade26b9ae4508096d5c (diff)
downloadplanetwars.dev-e69bd14f1d64b0d8b2438a40a069d3647c1edd73.tar.xz
planetwars.dev-e69bd14f1d64b0d8b2438a40a069d3647c1edd73.zip
refactor: delay BotSpec construction in RunMatch
Diffstat (limited to 'planetwars-server/src/db')
-rw-r--r--planetwars-server/src/db/bots.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/planetwars-server/src/db/bots.rs b/planetwars-server/src/db/bots.rs
index 1654f43..a112a9a 100644
--- a/planetwars-server/src/db/bots.rs
+++ b/planetwars-server/src/db/bots.rs
@@ -51,7 +51,7 @@ pub struct NewBotVersion<'a> {
pub container_digest: Option<&'a str>,
}
-#[derive(Queryable, Serialize, Deserialize, Debug)]
+#[derive(Queryable, Serialize, Deserialize, Clone, Debug)]
pub struct BotVersion {
pub id: i32,
pub bot_id: Option<i32>,