pub struct CapabilityPermissions {
pub mode: String,
pub active_rules: usize,
pub inheritance: Option<String>,
}Expand description
Permissions block (capabilities schema v2). Pre-P4 reports a live
count of namespace standards carrying a metadata.governance policy;
the full enforcement gate lands in P4. The honesty patch (P1)
renames the mode from "ask" (which implied an interactive prompt
loop) to "advisory" (governance metadata is recorded but not
enforced).
Fields§
§mode: StringEnforcement mode. "advisory" until P4 ships the gate.
active_rules: usizeNumber of namespace standards whose metadata.governance is
non-null. Counts policies, not memories.
inheritance: Option<String>v0.6.3.1 (P4, audit G1): governance-inheritance posture.
"enforced" = resolve_governance_policy walks the namespace
chain leaf-first and returns the most-specific policy (with
inherit: false short-circuiting). Pre-v0.6.3.1 was
"display_only" — the UI surfaced the chain but the gate
consulted only the leaf, leaving children of governed parents
completely ungoverned. The field is Option<String> so older
capabilities responses (without the field) round-trip cleanly
via #[serde(default)].
Trait Implementations§
Source§impl Clone for CapabilityPermissions
impl Clone for CapabilityPermissions
Source§fn clone(&self) -> CapabilityPermissions
fn clone(&self) -> CapabilityPermissions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CapabilityPermissions
impl Debug for CapabilityPermissions
Source§impl Default for CapabilityPermissions
impl Default for CapabilityPermissions
Source§fn default() -> CapabilityPermissions
fn default() -> CapabilityPermissions
Source§impl<'de> Deserialize<'de> for CapabilityPermissions
impl<'de> Deserialize<'de> for CapabilityPermissions
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>,
Auto Trait Implementations§
impl Freeze for CapabilityPermissions
impl RefUnwindSafe for CapabilityPermissions
impl Send for CapabilityPermissions
impl Sync for CapabilityPermissions
impl Unpin for CapabilityPermissions
impl UnsafeUnpin for CapabilityPermissions
impl UnwindSafe for CapabilityPermissions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more