admin_config/
cos_config.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize)]
4pub struct CosConfig {
5 pub secret_id: String,
7 pub secret_key: String,
9 pub bucket: String,
11 pub region: String,
13 pub cdn_domain: Option<String>,
15}
16
17impl Default for CosConfig {
18 fn default() -> Self {
19 Self {
20 secret_id: "".to_string(),
21 secret_key: "".to_string(),
22 bucket: "".to_string(),
23 region: "ap-guangzhou".to_string(),
24 cdn_domain: Some("".to_string()),
25 }
26 }
27}