Struct psa_crypto::types::key::Policy [−][src]
pub struct Policy {
pub usage_flags: UsageFlags,
pub permitted_algorithms: Algorithm,
}
Expand description
Definition of the key policy, what is permitted to do with the key.
Fields
usage_flags: UsageFlags
Usage flags for the key.
permitted_algorithms: Algorithm
Permitted algorithms to be used with the key.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Policy
impl UnwindSafe for Policy
Blanket Implementations
Mutably borrows from an owned value. Read more