pub struct AppConfig {Show 13 fields
pub gateway: GatewayConfig,
pub database: DatabaseConfig,
pub providers: ProvidersConfig,
pub external_backends: ExternalBackendsConfig,
pub memory: MemoryConfig,
pub session_routing: SessionRoutingConfig,
pub scheduler: SchedulerConfig,
pub security: SecurityConfig,
pub sidecar: SidecarConfig,
pub observability: ObservabilityConfig,
pub channels: ChannelsConfig,
pub voice: VoiceConfig,
pub skills: Option<SkillsConfig>,
}Expand description
Root configuration for the entire OpenRustClaw system.
Fields§
§gateway: GatewayConfig§database: DatabaseConfig§providers: ProvidersConfig§external_backends: ExternalBackendsConfig§memory: MemoryConfig§session_routing: SessionRoutingConfig§scheduler: SchedulerConfig§security: SecurityConfig§sidecar: SidecarConfig§observability: ObservabilityConfig§channels: ChannelsConfig§voice: VoiceConfig§skills: Option<SkillsConfig>Implementations§
Source§impl AppConfig
impl AppConfig
Sourcepub fn load() -> Result<Self, ConfigError>
pub fn load() -> Result<Self, ConfigError>
Load configuration from default.toml, then overlay environment variables.
Environment variables use the prefix OPENRUSTCLAW_ with __ as separator.
Example: OPENRUSTCLAW_GATEWAY__PORT=8080
Sourcepub fn load_from(path: &str) -> Result<Self, ConfigError>
pub fn load_from(path: &str) -> Result<Self, ConfigError>
Load from a specific config file path.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppConfig
impl<'de> Deserialize<'de> for AppConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnsafeUnpin 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