Struct parsec_interface::operations::psa_key_attributes::Policy
source · [−]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
sourceimpl<'de> Deserialize<'de> for Policy
impl<'de> Deserialize<'de> for Policy
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Policy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Policy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<Policy> for Policy
impl PartialEq<Policy> for Policy
sourceimpl Serialize for Policy
impl Serialize for Policy
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Policy
impl Eq for Policy
impl StructuralEq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnwindSafe for Policy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more