pub struct PolicyPackDescriptor {
pub name: &'static str,
pub description: &'static str,
pub capabilities: &'static CapabilitySet,
pub requirements: &'static [(&'static str, &'static str)],
pub receipt_expected: bool,
pub invariant_hints: &'static [&'static str],
}Expand description
Descriptor for a named policy pack with full metadata.
Used by schema export, CLI tooling, and Manager to describe each pre-built policy pack with its capabilities, validation requirements, receipt expectations, and invariant hints.
Fields§
§name: &'static strShort name (e.g. “TreasuryWrite”).
description: &'static strHuman-readable description of when to use this pack.
capabilities: &'static CapabilitySetCapability set this pack covers.
requirements: &'static [(&'static str, &'static str)]The policy (rule table) this pack enforces.
receipt_expected: boolWhether instructions using this pack should emit a receipt.
invariant_hints: &'static [&'static str]Invariant hints (e.g. “balance_conservation”, “authority_present”).
Trait Implementations§
Source§impl Clone for PolicyPackDescriptor
impl Clone for PolicyPackDescriptor
Source§fn clone(&self) -> PolicyPackDescriptor
fn clone(&self) -> PolicyPackDescriptor
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 moreimpl Copy for PolicyPackDescriptor
Auto Trait Implementations§
impl Freeze for PolicyPackDescriptor
impl RefUnwindSafe for PolicyPackDescriptor
impl Send for PolicyPackDescriptor
impl Sync for PolicyPackDescriptor
impl Unpin for PolicyPackDescriptor
impl UnsafeUnpin for PolicyPackDescriptor
impl UnwindSafe for PolicyPackDescriptor
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