pub struct OpenClawConfig {
pub gateway: Option<GatewayConfig>,
pub exec: Option<ExecConfig>,
pub sandbox: Option<SandboxConfig>,
pub tools: Option<ToolsConfig>,
pub session: Option<SessionConfig>,
pub logging: Option<LoggingConfig>,
pub secureops: Option<SecureOpsConfig>,
}Expand description
Full OpenClaw configuration.
Fields§
§gateway: Option<GatewayConfig>§exec: Option<ExecConfig>§sandbox: Option<SandboxConfig>§tools: Option<ToolsConfig>§session: Option<SessionConfig>§logging: Option<LoggingConfig>§secureops: Option<SecureOpsConfig>Implementations§
Source§impl OpenClawConfig
impl OpenClawConfig
Sourcepub fn failure_mode(&self) -> FailureMode
pub fn failure_mode(&self) -> FailureMode
Active failure mode (directive G4), defaulting to block_all
(port of getFailureMode).
Sourcepub fn risk_profile(&self) -> RiskProfile
pub fn risk_profile(&self) -> RiskProfile
Active risk profile (directive G8), defaulting to standard
(port of getRiskProfile).
Trait Implementations§
Source§impl Clone for OpenClawConfig
impl Clone for OpenClawConfig
Source§fn clone(&self) -> OpenClawConfig
fn clone(&self) -> OpenClawConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenClawConfig
impl Debug for OpenClawConfig
Source§impl Default for OpenClawConfig
impl Default for OpenClawConfig
Source§fn default() -> OpenClawConfig
fn default() -> OpenClawConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OpenClawConfigwhere
OpenClawConfig: Default,
impl<'de> Deserialize<'de> for OpenClawConfigwhere
OpenClawConfig: Default,
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
Source§impl PartialEq for OpenClawConfig
impl PartialEq for OpenClawConfig
Source§fn eq(&self, other: &OpenClawConfig) -> bool
fn eq(&self, other: &OpenClawConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OpenClawConfig
impl Serialize for OpenClawConfig
impl StructuralPartialEq for OpenClawConfig
Auto Trait Implementations§
impl Freeze for OpenClawConfig
impl RefUnwindSafe for OpenClawConfig
impl Send for OpenClawConfig
impl Sync for OpenClawConfig
impl Unpin for OpenClawConfig
impl UnsafeUnpin for OpenClawConfig
impl UnwindSafe for OpenClawConfig
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