Add validation for service methods

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet
2025-08-22 14:08:41 +02:00
parent bc6cb16732
commit 7ce19f8b6d
9 changed files with 1089 additions and 154 deletions

View File

@@ -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,
}