pub struct GovernanceSnapshot {
pub rules: Vec<GovernanceRule>,
pub risk_threshold: f64,
pub human_approval_required: bool,
pub limits: Limits,
}Expand description
A governance engine’s rules and settings at one instant.
Fields§
§rules: Vec<GovernanceRule>Every rule, active or not.
risk_threshold: f64The engine’s risk threshold.
human_approval_required: boolWhether blocking verdicts escalate to a human.
limits: LimitsProcess and spawn caps the exporter’s kernel runs under (ADR-103 A6). The engine does not know them: the daemon fills them in from its kernel config, so a project kernel’s merged limits start from the parent’s real caps and the overlay can only tighten them. The threshold and approval flag travel in the fields above, not here.
Trait Implementations§
Source§impl Clone for GovernanceSnapshot
impl Clone for GovernanceSnapshot
Auto Trait Implementations§
impl Freeze for GovernanceSnapshot
impl RefUnwindSafe for GovernanceSnapshot
impl Send for GovernanceSnapshot
impl Sync for GovernanceSnapshot
impl Unpin for GovernanceSnapshot
impl UnsafeUnpin for GovernanceSnapshot
impl UnwindSafe for GovernanceSnapshot
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
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> ⓘ
Converts
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> ⓘ
Converts
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