update the inline documentation strings
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user