pub enum PrivacyClass {
Public,
Internal,
ContentRefsOnly,
Sensitive,
Secret,
}Expand description
Enumerates the finite privacy class cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Public
Use this variant when the contract needs to represent public; selecting it has no side effect by itself.
Internal
Use this variant when the contract needs to represent internal; selecting it has no side effect by itself.
ContentRefsOnly
Use this variant when the contract needs to represent content refs only; selecting it has no side effect by itself.
Sensitive
Use this variant when the contract needs to represent sensitive; selecting it has no side effect by itself.
Secret
Use this variant when the contract needs to represent secret; selecting it has no side effect by itself.
Implementations§
Source§impl PrivacyClass
impl PrivacyClass
Sourcepub fn allows_raw_content_by_default(self) -> bool
pub fn allows_raw_content_by_default(self) -> bool
Returns whether allows raw content by default applies for this contract. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Trait Implementations§
Source§impl Clone for PrivacyClass
impl Clone for PrivacyClass
Source§fn clone(&self) -> PrivacyClass
fn clone(&self) -> PrivacyClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PrivacyClass
Source§impl Debug for PrivacyClass
impl Debug for PrivacyClass
Source§impl<'de> Deserialize<'de> for PrivacyClass
impl<'de> Deserialize<'de> for PrivacyClass
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>,
impl Eq for PrivacyClass
Source§impl Hash for PrivacyClass
impl Hash for PrivacyClass
Source§impl Ord for PrivacyClass
impl Ord for PrivacyClass
Source§fn cmp(&self, other: &PrivacyClass) -> Ordering
fn cmp(&self, other: &PrivacyClass) -> 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 PrivacyClass
impl PartialEq for PrivacyClass
Source§fn eq(&self, other: &PrivacyClass) -> bool
fn eq(&self, other: &PrivacyClass) -> bool
self and other values to be equal, and is used by ==.