update the inline documentation strings

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-06-28 17:43:15 +02:00
parent 2ce66aef09
commit 953c4c6783
19 changed files with 115 additions and 66 deletions

View File

@@ -1,23 +1,28 @@
/*
* advotracker - Hotline tackingtool for Advocats
*
* Copyright 2019 Ralf Zerres <ralf.zerres@networkx.de>
* Copyright 2020 Ralf Zerres <ralf.zerres@networkx.de>
* SPDX-License-Identifier: (0BSD or MIT)
*/
use crate::schema::user_roles;
use serde_derive::*;
/// Structure of a user role record
#[derive(Debug, Queryable, PartialEq)]
pub struct UserRole {
/// id of the referenced user
pub id_user: i32,
/// id of the referenced role
pub id_role: i32,
}
//#[derive(Deserialize)]
/// Structure of a new user role record
#[derive(Deserialize, Insertable)]
#[table_name = "user_roles"]
pub struct NewUserRole {
/// id of the referenced user
pub id_user: i32,
/// id of the referenced role
pub id_role: i32,
}