pub struct GovernanceConfig {
pub require_approvals: usize,
pub approvers: Vec<String>,
pub override_identity: Option<String>,
}Expand description
Draft approval governance configuration (v0.14.2).
Controls how many approvals a draft requires before it can be applied, and which identities are permitted to approve.
[governance]
require_approvals = 2
approvers = ["alice", "bob", "charlie"]
# override_identity allows emergency bypass (logged to audit trail).
override_identity = "emergency-admin"Fields§
§require_approvals: usizeMinimum number of distinct approvals required before a draft can be applied. Default: 1 (single-approver, backward-compatible).
approvers: Vec<String>Allowlist of reviewer identities permitted to approve. Empty list = any reviewer is accepted (default, backward-compatible).
override_identity: Option<String>Identity allowed to use --override to bypass the quorum requirement.
The override is recorded in the audit log for accountability.
Trait Implementations§
Source§impl Clone for GovernanceConfig
impl Clone for GovernanceConfig
Source§fn clone(&self) -> GovernanceConfig
fn clone(&self) -> GovernanceConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 GovernanceConfig
impl Debug for GovernanceConfig
Source§impl Default for GovernanceConfig
impl Default for GovernanceConfig
Source§impl<'de> Deserialize<'de> for GovernanceConfig
impl<'de> Deserialize<'de> for GovernanceConfig
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 GovernanceConfig
impl RefUnwindSafe for GovernanceConfig
impl Send for GovernanceConfig
impl Sync for GovernanceConfig
impl Unpin for GovernanceConfig
impl UnsafeUnpin for GovernanceConfig
impl UnwindSafe for GovernanceConfig
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