knot0_types/
definitions.rs1use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Serialize, Deserialize)]
6#[serde(rename_all = "camelCase")]
7pub struct Definitions {
8}
9
10#[derive(Debug, Clone, Serialize, Deserialize)]
11pub struct Testcase {
12 pub scenario: String,
13 pub run: Option<String>,
14 pub with: Option<serde_json::Value>,
15 pub expect: Option<Vec<String>>,
16 pub timeout_seconds: Option<i64>,
17 pub services: Option<Vec<String>>,
18}
19
20#[derive(Debug, Clone, Serialize, Deserialize)]
21pub struct Serviceprovisioningoverrides {
22 pub env: Option<serde_json::Value>,
23 pub health_endpoint: Option<String>,
24 pub wait_timeout_seconds: Option<i64>,
25}
26
27#[derive(Debug, Clone, Serialize, Deserialize)]
28pub struct Resourceprovisionrequest {
29 pub kind: String,
30 pub name: Option<String>,
31 pub config: Option<serde_json::Value>,
32}
33
34#[derive(Debug, Clone, Serialize, Deserialize)]
35pub struct Todo {
36}
37
38#[derive(Debug, Clone, Serialize, Deserialize)]
39pub struct Duration {
40}
41
42#[derive(Debug, Clone, Serialize, Deserialize)]
43pub struct Action {
44 pub name: Option<String>,
45 pub uses: serde_json::Value,
46 pub with: Option<serde_json::Value>,
47}
48
49#[derive(Debug, Clone, Serialize, Deserialize)]
50pub struct Postgresdbresource {
51 #[serde(rename = "type")]
52 pub r#type: serde_json::Value,
53 pub connection_string: String,
54}
55
56#[derive(Debug, Clone, Serialize, Deserialize)]
57pub struct Objectstoreresource {
58 #[serde(rename = "type")]
59 pub r#type: serde_json::Value,
60 pub endpoint_url: String,
61 pub bucket: String,
62 pub access_key: String,
63 pub secret_key: String,
64 pub region: Option<String>,
65}
66
67#[derive(Debug, Clone, Serialize, Deserialize)]
68pub struct Vectordbresource {
69 #[serde(rename = "type")]
70 pub r#type: serde_json::Value,
71 pub provider: String,
72 pub api_key: String,
73 pub environment: Option<String>,
74 pub index_name: Option<String>,
75}
76
77#[derive(Debug, Clone, Serialize, Deserialize)]
78pub struct Resource {
79}