#[non_exhaustive]#[repr(u8)]pub enum KeyPurposeId {
ServerAuth = 1,
ClientAuth = 2,
CodeSigning = 3,
EmailProtection = 4,
TimeStamping = 5,
OcspSigning = 6,
}Available on crate feature
rustcrypto only.Expand description
key-purpose-id (§6.5.11.3, Table 93).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ServerAuth = 1
id-kp-serverAuth.
ClientAuth = 2
id-kp-clientAuth.
CodeSigning = 3
id-kp-codeSigning.
EmailProtection = 4
id-kp-emailProtection.
TimeStamping = 5
id-kp-timeStamping.
OcspSigning = 6
id-kp-OCSPSigning.
Implementations§
Source§impl KeyPurposeId
impl KeyPurposeId
Sourcepub const fn from_value(value: u64) -> Option<Self>
pub const fn from_value(value: u64) -> Option<Self>
The value a TLV element carries, or None if it is outside Table 93 — which
§6.5.14 lists as invalidating the certificate.
Trait Implementations§
Source§impl Clone for KeyPurposeId
impl Clone for KeyPurposeId
impl Copy for KeyPurposeId
Source§impl Debug for KeyPurposeId
impl Debug for KeyPurposeId
impl Eq for KeyPurposeId
Source§impl Hash for KeyPurposeId
impl Hash for KeyPurposeId
Source§impl PartialEq for KeyPurposeId
impl PartialEq for KeyPurposeId
impl StructuralPartialEq for KeyPurposeId
Auto Trait Implementations§
impl Forget for KeyPurposeId
impl Freeze for KeyPurposeId
impl Move for KeyPurposeId
impl RefUnwindSafe for KeyPurposeId
impl Send for KeyPurposeId
impl Sync for KeyPurposeId
impl Unpin for KeyPurposeId
impl UnsafeUnpin for KeyPurposeId
impl UnwindSafe for KeyPurposeId
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