Enum credo::PermissionKind
source · pub enum PermissionKind {
MakeStatement {
path_prefix: String,
},
AddSharedSecretRecipient {
secret_kind: String,
},
RevealSharedSecret {
secret_kind: String,
},
EntrustToSharedSecret {
secret_kind: String,
},
TimeWitness,
InheritFrom,
Delegate {
delegated: Box<PermissionKind>,
},
DelegateInfinitely {
delegated: Box<PermissionKind>,
},
}
Variants§
MakeStatement
TimeWitness
InheritFrom
Delegate
Fields
§
delegated: Box<PermissionKind>
DelegateInfinitely
Fields
§
delegated: Box<PermissionKind>
Implementations§
source§impl PermissionKind
impl PermissionKind
pub fn permits_claim(&self, example: &ClaimBody) -> bool
pub fn is_stricter_than_or_equal_to(&self, other: &PermissionKind) -> bool
Trait Implementations§
source§impl Clone for PermissionKind
impl Clone for PermissionKind
source§fn clone(&self) -> PermissionKind
fn clone(&self) -> PermissionKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PermissionKind
impl Debug for PermissionKind
source§impl<'de> Deserialize<'de> for PermissionKind
impl<'de> Deserialize<'de> for PermissionKind
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<PermissionKind> for PermissionKind
impl PartialEq<PermissionKind> for PermissionKind
source§fn eq(&self, other: &PermissionKind) -> bool
fn eq(&self, other: &PermissionKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.