Add function and prefer .iter()
This commit is contained in:
parent
53c6fcd917
commit
e3adc35221
12 changed files with 117 additions and 67 deletions
src/db
|
@ -1,6 +1,6 @@
|
|||
use crate::db::model_utils::Period;
|
||||
use diesel::sql_types::Binary;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use crate::db::model_utils::Period;
|
||||
|
||||
use super::schema::*;
|
||||
use crate::types::EmgauwaUid;
|
||||
|
@ -12,7 +12,7 @@ pub struct Relay {
|
|||
// TODO
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Identifiable, Queryable)]
|
||||
#[derive(Debug, Serialize, Identifiable, Queryable, Clone)]
|
||||
pub struct Schedule {
|
||||
#[serde(skip)]
|
||||
pub id: i32,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue