17
src/models/context.rs
Normal file
17
src/models/context.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::time::Timestamp;
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct Context {
|
||||
/// Redis DB to use
|
||||
id: u32,
|
||||
/// Actor ids which have admin rights on this context
|
||||
admins: Vec<u32>,
|
||||
/// Actor ids which can read the context info
|
||||
readers: Vec<u32>,
|
||||
/// Actor ids which can execute jobs in this context
|
||||
executors: Vec<u32>,
|
||||
created_at: Timestamp,
|
||||
upddated_at: Timestamp,
|
||||
}
|
Reference in New Issue
Block a user