pub struct BaukitConfig<T: Default> {
pub environment: Environment,
pub http: HttpConfig,
pub ops: OpsConfig,
pub database: Option<DatabaseConfig>,
pub rate_limit: RateLimitConfig,
pub telemetry: TelemetryConfig,
pub shutdown: ShutdownConfig,
pub product: T,
}Expand description
Standard Baukit sections plus flattened, product-specific configuration.
Product fields live at the top level beside http, ops, optional database,
rate_limit, telemetry, and shutdown, while validation errors are prefixed with
product. to distinguish their ownership. Product types should use
#[serde(default)] when their default field values should apply to omitted
configuration keys.
Fields§
§environment: EnvironmentDeployment environment fixed by ConfigLoader at bootstrap.
http: HttpConfigPublic HTTP listener settings.
ops: OpsConfigSeparate operations listener settings.
database: Option<DatabaseConfig>Optional database connection and pool settings.
Omit the section for database-free services. When present, omitted
fields inside the section retain DatabaseConfig defaults.
rate_limit: RateLimitConfigRedis-backed identity and client-IP rate limiting.
telemetry: TelemetryConfigLogging, tracing, and telemetry identity settings.
shutdown: ShutdownConfigGraceful shutdown settings.
product: TProduct-owned extension fields, flattened into the top-level document.