0.1.0
This commit is contained in:
23
kb-config/src/lib.rs
Normal file
23
kb-config/src/lib.rs
Normal file
@@ -0,0 +1,23 @@
|
||||
// file: kb-config/src/lib.rs
|
||||
// version: 1
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(unreachable_pub)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
//! Configuration contracts for Khadhroony Bot3.
|
||||
|
||||
/// Minimal application configuration used during the migration.
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
pub struct AppConfig {
|
||||
/// Active profile name.
|
||||
pub active_profile: std::string::String,
|
||||
}
|
||||
|
||||
impl std::default::Default for AppConfig {
|
||||
fn default() -> Self {
|
||||
return Self {
|
||||
active_profile: std::string::String::from("development"),
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user