Enum rcgen::KeyUsagePurpose
source · pub enum KeyUsagePurpose {
DigitalSignature,
ContentCommitment,
KeyEncipherment,
DataEncipherment,
KeyAgreement,
KeyCertSign,
CrlSign,
EncipherOnly,
DecipherOnly,
}
Expand description
One of the purposes contained in the key usage extension
Variants§
DigitalSignature
digitalSignature
ContentCommitment
contentCommitment / nonRepudiation
KeyEncipherment
keyEncipherment
DataEncipherment
dataEncipherment
KeyAgreement
keyAgreement
KeyCertSign
keyCertSign
CrlSign
cRLSign
EncipherOnly
encipherOnly
DecipherOnly
decipherOnly
Trait Implementations§
source§impl Clone for KeyUsagePurpose
impl Clone for KeyUsagePurpose
source§fn clone(&self) -> KeyUsagePurpose
fn clone(&self) -> KeyUsagePurpose
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 KeyUsagePurpose
impl Debug for KeyUsagePurpose
source§impl Hash for KeyUsagePurpose
impl Hash for KeyUsagePurpose
source§impl PartialEq for KeyUsagePurpose
impl PartialEq for KeyUsagePurpose
source§fn eq(&self, other: &KeyUsagePurpose) -> bool
fn eq(&self, other: &KeyUsagePurpose) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for KeyUsagePurpose
impl StructuralPartialEq for KeyUsagePurpose
Auto Trait Implementations§
impl Freeze for KeyUsagePurpose
impl RefUnwindSafe for KeyUsagePurpose
impl Send for KeyUsagePurpose
impl Sync for KeyUsagePurpose
impl Unpin for KeyUsagePurpose
impl UnwindSafe for KeyUsagePurpose
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)