Skip to main content

agent_deploy_contract/
fms_config.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
4#[serde(rename_all = "camelCase")]
5pub struct FmsAdminConfig {
6    pub endpoint: String,
7    pub bucket: String,
8    pub app_id: String,
9    pub app_secret_configured: bool,
10    pub client_id: String,
11    pub client_name: Option<String>,
12    pub client_secret_configured: bool,
13    pub region: String,
14    pub expire_seconds: u64,
15    pub managed: bool,
16    pub active: bool,
17}
18
19#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
20#[serde(rename_all = "camelCase", deny_unknown_fields)]
21pub struct UpdateFmsAdminConfigRequest {
22    pub endpoint: String,
23    pub bucket: String,
24    pub app_id: String,
25    #[serde(default)]
26    pub app_secret: Option<String>,
27    #[serde(default)]
28    pub clear_app_secret: bool,
29    pub client_id: String,
30    #[serde(default)]
31    pub client_name: Option<String>,
32    #[serde(default)]
33    pub client_secret: Option<String>,
34    #[serde(default)]
35    pub clear_client_secret: bool,
36    pub region: String,
37    pub expire_seconds: u64,
38}