pub struct AppConfig {Show 17 fields
pub port: String,
pub backend_url: String,
pub request_timeout: Duration,
pub max_body_size: usize,
pub key_rotation_interval: Duration,
pub key_retention_period: Duration,
pub key_rotation_enabled: bool,
pub allowed_target_origins: Option<HashSet<String>>,
pub target_rewrites: Option<TargetRewriteConfig>,
pub rate_limit: Option<RateLimitConfig>,
pub metrics_enabled: bool,
pub debug_mode: bool,
pub log_format: LogFormat,
pub log_level: String,
pub custom_request_type: Option<String>,
pub custom_response_type: Option<String>,
pub seed_secret_key: Option<String>,
}Fields§
§port: String§backend_url: String§request_timeout: Duration§max_body_size: usize§key_rotation_interval: Duration§key_retention_period: Duration§key_rotation_enabled: bool§allowed_target_origins: Option<HashSet<String>>§target_rewrites: Option<TargetRewriteConfig>§rate_limit: Option<RateLimitConfig>§metrics_enabled: bool§debug_mode: bool§log_format: LogFormat§log_level: String§custom_request_type: Option<String>§custom_response_type: Option<String>§seed_secret_key: Option<String>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 UnsafeUnpin for AppConfig
impl UnwindSafe for AppConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more