pub struct Config {
pub database: DatabaseConfig,
pub http: Option<HttpConfig>,
}Expand description
Runtime configuration for the MCP server.
Composes DatabaseConfig with an optional HttpConfig.
HTTP config is present only when the HTTP transport is selected
(via subcommand or MCP_TRANSPORT env var). Logging is configured
directly from CLI arguments before Config is constructed, so it
is not part of this struct.
Fields§
§database: DatabaseConfigDatabase connection and behavior settings.
http: Option<HttpConfig>HTTP transport settings (present only when HTTP transport is active).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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