pub struct AppConfig {
pub host: String,
pub port: u16,
pub enable_l2_cache: bool,
pub redis_url: Option<String>,
pub openai_api_key: Option<String>,
pub anthropic_api_key: Option<String>,
pub enable_tracing: bool,
pub enable_metrics: bool,
pub metrics_port: u16,
}Expand description
Application configuration
Fields§
§host: StringServer host address
port: u16Server port
enable_l2_cache: boolEnable L2 cache (Redis)
redis_url: Option<String>Redis connection URL
openai_api_key: Option<String>OpenAI API key
anthropic_api_key: Option<String>Anthropic API key
enable_tracing: boolEnable request tracing
enable_metrics: boolEnable metrics export
metrics_port: u16Metrics port
Implementations§
Trait Implementations§
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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more