pub struct AppConfig {Show 14 fields
pub server: ServerConfig,
pub database: DatabaseConfig,
pub redis: RedisConfig,
pub auth: AuthConfig,
pub email: EmailConfig,
pub sms: SmsConfig,
pub verification_code: VerificationCodeConfig,
pub cos: CosConfig,
pub security: SecurityConfig,
pub session: SessionConfig,
pub upload: UploadConfig,
pub rate_limit: RateLimitConfig,
pub development: DevelopmentConfig,
pub llm: Vec<LlmConfig>,
}Fields§
§server: ServerConfig服务器配置
database: DatabaseConfig数据库配置
redis: RedisConfigRedis 配置
auth: AuthConfig认证配置
email: EmailConfig邮件配置
sms: SmsConfig短信配置
verification_code: VerificationCodeConfig验证码配置
cos: CosConfig对象存储配置
security: SecurityConfig安全配置
session: SessionConfig会话配置
upload: UploadConfig上传配置
rate_limit: RateLimitConfig速率限制配置
development: DevelopmentConfig开发环境配置
llm: Vec<LlmConfig>LLM 配置
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppConfig
impl<'de> Deserialize<'de> for AppConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnwindSafe for AppConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)