#[non_exhaustive]pub struct SessionLimits {
pub sandbox_enabled: bool,
pub sandbox_network: LimitsNetworkMode,
pub writes_enabled: bool,
pub shell_enabled: bool,
pub workspace_trusted: bool,
}Expand description
A five-axis limits report: every maxLimits / currentLimits member is
this one definition, and every member is required — reporting always fills
all five, so readers never see an absence.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sandbox_enabled: boolShell filesystem/network sandboxing (--disable-sandbox absent).
sandbox_network: LimitsNetworkModeSandbox network policy (--sandbox-network grammar).
writes_enabled: boolNon-shell workspace filesystem writes (--disable-write absent).
shell_enabled: boolWorkspace shell execution (--disable-shell absent).
workspace_trusted: boolLoading the workspace’s skills and rules (--trust-workspace).
Implementations§
Source§impl SessionLimits
impl SessionLimits
Sourcepub const SANDBOX_ENABLED_AXIS: &str = "sandboxEnabled"
pub const SANDBOX_ENABLED_AXIS: &str = "sandboxEnabled"
The wire name of the sandbox-enabled axis (single source: this struct’s camelCase).
Sourcepub const SANDBOX_NETWORK_AXIS: &str = "sandboxNetwork"
pub const SANDBOX_NETWORK_AXIS: &str = "sandboxNetwork"
The wire name of the sandbox-network axis (single source: this struct’s camelCase).
Sourcepub const WRITES_ENABLED_AXIS: &str = "writesEnabled"
pub const WRITES_ENABLED_AXIS: &str = "writesEnabled"
The wire name of the writes axis (single source: this struct’s camelCase).
Sourcepub const SHELL_ENABLED_AXIS: &str = "shellEnabled"
pub const SHELL_ENABLED_AXIS: &str = "shellEnabled"
The wire name of the shell axis (single source: this struct’s camelCase).
Sourcepub const WORKSPACE_TRUSTED_AXIS: &str = "workspaceTrusted"
pub const WORKSPACE_TRUSTED_AXIS: &str = "workspaceTrusted"
The wire name of the trust axis, shared by the -32028 axes and
the resume tightenedAxes (single source: this struct’s camelCase).