pub struct GovernancePolicy {
pub default_action: Option<PolicyAction>,
pub rules: Vec<PolicyRule>,
pub vetoed_tools: Vec<String>,
pub rate_limits: Vec<RateLimitSpec>,
pub constraints: Vec<ParamConstraint>,
}Expand description
Syscall-gate policy — the complete posture, replaced atomically.
The same type is the operation’s initial governance (§13.1) and the payload of its live
governance mutation (§13.2). There is one wire shape; authority is carried by the input class
that transports it — ConfigureOperation once, or a revision-guarded
ApplyPolicyPatchCommand afterwards.
Fields§
§default_action: Option<PolicyAction>§rules: Vec<PolicyRule>§vetoed_tools: Vec<String>§rate_limits: Vec<RateLimitSpec>§constraints: Vec<ParamConstraint>Trait Implementations§
Source§impl Clone for GovernancePolicy
impl Clone for GovernancePolicy
Source§fn clone(&self) -> GovernancePolicy
fn clone(&self) -> GovernancePolicy
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 GovernancePolicy
impl Debug for GovernancePolicy
Source§impl Default for GovernancePolicy
impl Default for GovernancePolicy
Source§fn default() -> GovernancePolicy
fn default() -> GovernancePolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GovernancePolicy
impl<'de> Deserialize<'de> for GovernancePolicy
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
Source§impl PartialEq for GovernancePolicy
impl PartialEq for GovernancePolicy
Source§impl Serialize for GovernancePolicy
impl Serialize for GovernancePolicy
impl StructuralPartialEq for GovernancePolicy
Auto Trait Implementations§
impl Freeze for GovernancePolicy
impl RefUnwindSafe for GovernancePolicy
impl Send for GovernancePolicy
impl Sync for GovernancePolicy
impl Unpin for GovernancePolicy
impl UnsafeUnpin for GovernancePolicy
impl UnwindSafe for GovernancePolicy
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