From caa7b4429e68135404ad5a01aa1d7f530abae090 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 28 Apr 2019 13:47:58 +0200 Subject: Update /screenings endpoint to return full info on screenings. This makes each screening record self-contained, and the json payload more consistent with how it semantically fit together. --- src/models/room.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/models/room.rs') diff --git a/src/models/room.rs b/src/models/room.rs index d475901..40c5d19 100644 --- a/src/models/room.rs +++ b/src/models/room.rs @@ -19,7 +19,7 @@ use crate::schema::rooms; use serde_derive::{Deserialize, Serialize}; -#[derive(Deserialize, Identifiable, PartialEq, Serialize, Queryable)] +#[derive(Clone, Default, Deserialize, Identifiable, PartialEq, Serialize, Queryable)] pub struct Room { pub id: i32, pub name: String, -- cgit v1.2.3