pub struct CapabilitySpec {
pub description: String,
pub provider: ProviderId,
pub effect: EffectKind,
pub risk: RiskLevel,
pub idempotency: Idempotency,
pub permissions: Vec<Permission>,
}Expand description
Desired state of a capability.
Fields§
§description: StringConcise operator-facing purpose.
provider: ProviderIdProvider expected to implement this capability.
effect: EffectKindExternal-effect classification.
risk: RiskLevelCoarse risk classification available to policy.
idempotency: IdempotencyDeclared retry behavior.
permissions: Vec<Permission>Least-privilege provider permissions.
Trait Implementations§
Source§impl Clone for CapabilitySpec
impl Clone for CapabilitySpec
Source§fn clone(&self) -> CapabilitySpec
fn clone(&self) -> CapabilitySpec
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 CapabilitySpec
impl Debug for CapabilitySpec
Source§impl<'de> Deserialize<'de> for CapabilitySpec
impl<'de> Deserialize<'de> for CapabilitySpec
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 CapabilitySpec
Source§impl JsonSchema for CapabilitySpec
impl JsonSchema for CapabilitySpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CapabilitySpec
impl PartialEq for CapabilitySpec
Source§impl Serialize for CapabilitySpec
impl Serialize for CapabilitySpec
impl StructuralPartialEq for CapabilitySpec
Auto Trait Implementations§
impl Freeze for CapabilitySpec
impl RefUnwindSafe for CapabilitySpec
impl Send for CapabilitySpec
impl Sync for CapabilitySpec
impl Unpin for CapabilitySpec
impl UnsafeUnpin for CapabilitySpec
impl UnwindSafe for CapabilitySpec
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