pub struct ShellCapability {
pub args: Vec<String>,
pub require_approval: ShellApproval,
pub class_key: Option<String>,
}Expand description
One entry in [shell.capabilities] — a command and its argument names.
A capability may carry its own act-gate (M11, REQ-CONSENT-3): the same
require_approval enum the spawn gate uses, riding the individual op so the
dangerous act is gated, not just the spawn. An optional class_key scopes
the written grant finer than the op id — granted per (owner × class × node)
(the usbip attach’s device class), so a remembered HID-class grant never
authorizes a storage-class act. Spawn gates govern existence; capability
gates govern acts (CONTEXT §“per-capability approval gates”).
Fields§
§args: Vec<String>§require_approval: ShellApprovalPer-act approval gate (floor; a node/endpoint setting may tighten).
Absent ⇒ none (ungated).
class_key: Option<String>Optional grant-qualifier class so a grant scopes finer than the op id
((owner × class × node)). Only meaningful with a gated require_approval.
Trait Implementations§
Source§impl Clone for ShellCapability
impl Clone for ShellCapability
Source§fn clone(&self) -> ShellCapability
fn clone(&self) -> ShellCapability
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ShellCapability
impl Debug for ShellCapability
Source§impl Default for ShellCapability
impl Default for ShellCapability
Source§fn default() -> ShellCapability
fn default() -> ShellCapability
Source§impl<'de> Deserialize<'de> for ShellCapability
impl<'de> Deserialize<'de> for ShellCapability
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>,
Source§impl JsonSchema for ShellCapability
impl JsonSchema for ShellCapability
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more