object_storage_lib/
config.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};
use tihu::LightString;

#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct Oss {
    pub access_key: LightString,
    pub secret_key: LightString,
    pub endpoint: LightString,
    pub region: LightString,
    pub bucket: LightString,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct Config {
    pub aes_key: [u8; 32],
    pub oss: Oss,
}