pub enum TrustClass {
Trusted,
SdkGenerated,
HostProvided,
UserProvided,
External,
Untrusted,
}Expand description
Enumerates the finite trust class cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Trusted
Use this variant when the contract needs to represent trusted; selecting it has no side effect by itself.
SdkGenerated
Use this variant when the contract needs to represent sdk generated; selecting it has no side effect by itself.
HostProvided
Use this variant when the contract needs to represent host provided; selecting it has no side effect by itself.
UserProvided
Use this variant when the contract needs to represent user provided; selecting it has no side effect by itself.
External
Use this variant when the contract needs to represent external; selecting it has no side effect by itself.
Untrusted
Use this variant when the contract needs to represent untrusted; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for TrustClass
impl Clone for TrustClass
Source§fn clone(&self) -> TrustClass
fn clone(&self) -> TrustClass
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 TrustClass
Source§impl Debug for TrustClass
impl Debug for TrustClass
Source§impl<'de> Deserialize<'de> for TrustClass
impl<'de> Deserialize<'de> for TrustClass
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 TrustClass
Source§impl Hash for TrustClass
impl Hash for TrustClass
Source§impl Ord for TrustClass
impl Ord for TrustClass
Source§fn cmp(&self, other: &TrustClass) -> Ordering
fn cmp(&self, other: &TrustClass) -> 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 TrustClass
impl PartialEq for TrustClass
Source§fn eq(&self, other: &TrustClass) -> bool
fn eq(&self, other: &TrustClass) -> bool
self and other values to be equal, and is used by ==.