pub struct CapabilityScope {
pub tool: String,
pub approved_steps_hash: String,
pub target_constraints: Option<Value>,
}Expand description
Capability token scope.
Fields§
§tool: StringTool name authorized by this token.
approved_steps_hash: StringSHA-256 hash of approved steps (for plan integrity verification).
target_constraints: Option<Value>Tool-specific constraints (e.g., for ssh_exec: host, user).
Trait Implementations§
Source§impl Clone for CapabilityScope
impl Clone for CapabilityScope
Source§impl Debug for CapabilityScope
impl Debug for CapabilityScope
Source§impl<'de> Deserialize<'de> for CapabilityScope
impl<'de> Deserialize<'de> for CapabilityScope
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 CapabilityScope
impl RefUnwindSafe for CapabilityScope
impl Send for CapabilityScope
impl Sync for CapabilityScope
impl Unpin for CapabilityScope
impl UnsafeUnpin for CapabilityScope
impl UnwindSafe for CapabilityScope
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