1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use serde::{Deserialize, Serialize};
pub static ACTION_ENDPOINT: &str = "actions";
pub static TRIGGERS_ENDPOINT: &str = "triggers";
pub static RULES_ENDPOINT: &str = "rules";
pub static NAMESPACE_ENDPOINT: &str = "namespaces";
#[derive(Debug, Deserialize, Serialize, Clone, Default, PartialEq)]
pub struct Limits {
#[serde(default)]
pub timeout: i64,
#[serde(default)]
pub memory: i64,
#[serde(default)]
pub logsize: i64,
#[serde(default)]
pub concurrency: i64,
}
pub enum HttpMethods {
GET,
PUT,
POST,
DELETE,
}