pub struct PolicyDescriptor {
pub name: &'static str,
pub capabilities: &'static [&'static str],
pub requirements: &'static [&'static str],
pub invariants: &'static [&'static str],
pub receipt_profile: &'static str,
}Expand description
A policy descriptor in a program manifest.
Fields§
§name: &'static strPolicy pack name.
capabilities: &'static [&'static str]Capability names this policy covers.
requirements: &'static [&'static str]Requirement names this policy triggers.
invariants: &'static [&'static str]Invariant names this policy checks.
receipt_profile: &'static strReceipt profile expected when this policy is active.
Trait Implementations§
Source§impl Clone for PolicyDescriptor
impl Clone for PolicyDescriptor
Source§fn clone(&self) -> PolicyDescriptor
fn clone(&self) -> PolicyDescriptor
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 PolicyDescriptor
Auto Trait Implementations§
impl Freeze for PolicyDescriptor
impl RefUnwindSafe for PolicyDescriptor
impl Send for PolicyDescriptor
impl Sync for PolicyDescriptor
impl Unpin for PolicyDescriptor
impl UnsafeUnpin for PolicyDescriptor
impl UnwindSafe for PolicyDescriptor
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