pub enum PolicyKind {
Approval,
Permission,
Sandbox,
Context,
Privacy,
Retention,
Redaction,
RuntimePackage,
Host,
}Expand description
Enumerates the finite policy kind cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Approval
Use this variant when the contract needs to represent approval; selecting it has no side effect by itself.
Permission
Use this variant when the contract needs to represent permission; selecting it has no side effect by itself.
Sandbox
Use this variant when the contract needs to represent sandbox; selecting it has no side effect by itself.
Context
Use this variant when the contract needs to represent context; selecting it has no side effect by itself.
Privacy
Use this variant when the contract needs to represent privacy; selecting it has no side effect by itself.
Retention
Use this variant when the contract needs to represent retention; selecting it has no side effect by itself.
Redaction
Use this variant when the contract needs to represent redaction; selecting it has no side effect by itself.
RuntimePackage
Use this variant when the contract needs to represent runtime package; selecting it has no side effect by itself.
Host
Use this variant when the contract needs to represent host; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for PolicyKind
impl Clone for PolicyKind
Source§fn clone(&self) -> PolicyKind
fn clone(&self) -> PolicyKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PolicyKind
impl Debug for PolicyKind
Source§impl<'de> Deserialize<'de> for PolicyKind
impl<'de> Deserialize<'de> for PolicyKind
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>,
Source§impl Hash for PolicyKind
impl Hash for PolicyKind
Source§impl Ord for PolicyKind
impl Ord for PolicyKind
Source§fn cmp(&self, other: &PolicyKind) -> Ordering
fn cmp(&self, other: &PolicyKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PolicyKind
impl PartialEq for PolicyKind
Source§fn eq(&self, other: &PolicyKind) -> bool
fn eq(&self, other: &PolicyKind) -> bool
self and other values to be equal, and is used by ==.