Add validation for service methods
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
@@ -5,13 +5,13 @@ use crate::time::Timestamp;
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
pub struct Context {
|
||||
/// Redis DB to use
|
||||
id: u32,
|
||||
pub id: u32,
|
||||
/// Actor ids which have admin rights on this context
|
||||
admins: Vec<u32>,
|
||||
pub admins: Vec<u32>,
|
||||
/// Actor ids which can read the context info
|
||||
readers: Vec<u32>,
|
||||
pub readers: Vec<u32>,
|
||||
/// Actor ids which can execute jobs in this context
|
||||
executors: Vec<u32>,
|
||||
created_at: Timestamp,
|
||||
updated_at: Timestamp,
|
||||
pub executors: Vec<u32>,
|
||||
pub created_at: Timestamp,
|
||||
pub updated_at: Timestamp,
|
||||
}
|
||||
|
Reference in New Issue
Block a user