pub struct FleetCapabilityGrant {
pub capability: String,
pub scope: Option<String>,
pub reason: Option<String>,
}Expand description
A capability grant that explicitly authorizes a worker to perform a specific class of action.
By default, new workers get no grants (least privilege). Grants are additive: a worker’s effective capabilities are the union of its trust-level defaults plus any explicit grants.
Fields§
§capability: StringThe capability being granted (e.g. "network", "git-push",
"provider-secrets", "release").
scope: Option<String>Optional scope limiting the grant (e.g. "github.com" for network,
"crates/tui/**" for file writes).
reason: Option<String>Optional justification for the grant (audit trail).
Trait Implementations§
Source§impl Clone for FleetCapabilityGrant
impl Clone for FleetCapabilityGrant
Source§fn clone(&self) -> FleetCapabilityGrant
fn clone(&self) -> FleetCapabilityGrant
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 FleetCapabilityGrant
impl Debug for FleetCapabilityGrant
Source§impl<'de> Deserialize<'de> for FleetCapabilityGrant
impl<'de> Deserialize<'de> for FleetCapabilityGrant
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
impl Eq for FleetCapabilityGrant
Source§impl PartialEq for FleetCapabilityGrant
impl PartialEq for FleetCapabilityGrant
Source§fn eq(&self, other: &FleetCapabilityGrant) -> bool
fn eq(&self, other: &FleetCapabilityGrant) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FleetCapabilityGrant
impl Serialize for FleetCapabilityGrant
impl StructuralPartialEq for FleetCapabilityGrant
Auto Trait Implementations§
impl Freeze for FleetCapabilityGrant
impl RefUnwindSafe for FleetCapabilityGrant
impl Send for FleetCapabilityGrant
impl Sync for FleetCapabilityGrant
impl Unpin for FleetCapabilityGrant
impl UnsafeUnpin for FleetCapabilityGrant
impl UnwindSafe for FleetCapabilityGrant
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