pub struct ServerAppConfig {
pub org: OrgConfig,
pub server: ServerConfig,
pub logging: LoggingConfig,
}Expand description
Complete MCP server application configuration
Fields§
§org: OrgConfig§server: ServerConfig§logging: LoggingConfigImplementations§
Source§impl ServerAppConfig
impl ServerAppConfig
Sourcepub fn load(
config_file: Option<String>,
root_directory: Option<String>,
log_level: Option<String>,
) -> Result<Self, OrgModeError>
pub fn load( config_file: Option<String>, root_directory: Option<String>, log_level: Option<String>, ) -> Result<Self, OrgModeError>
Load server configuration from file and environment with CLI argument overrides
Sourcepub fn save_to_file(&self, path: &PathBuf) -> Result<(), OrgModeError>
pub fn save_to_file(&self, path: &PathBuf) -> Result<(), OrgModeError>
Save the configuration to a file
Trait Implementations§
Source§impl Clone for ServerAppConfig
impl Clone for ServerAppConfig
Source§fn clone(&self) -> ServerAppConfig
fn clone(&self) -> ServerAppConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServerAppConfig
impl RefUnwindSafe for ServerAppConfig
impl Send for ServerAppConfig
impl Sync for ServerAppConfig
impl Unpin for ServerAppConfig
impl UnwindSafe for ServerAppConfig
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