#[non_exhaustive]pub enum ExtendedKeyPurpose {
ServerAuth,
ClientAuth,
CodeSigning,
EmailProtection,
TimeStamping,
OcspSigning,
Other(Vec<u64>),
}Expand description
An RFC 5280 extended-key-purpose identifier accepted for XML signing.
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
TLS server authentication (id-kp-serverAuth).
ClientAuth
TLS client authentication (id-kp-clientAuth).
CodeSigning
Executable code signing (id-kp-codeSigning).
EmailProtection
Email protection (id-kp-emailProtection).
TimeStamping
Trusted timestamping (id-kp-timeStamping).
OcspSigning
OCSP response signing (id-kp-OCSPSigning).
Other(Vec<u64>)
Application-defined purpose represented as OID arcs.
Trait Implementations§
Source§impl Clone for ExtendedKeyPurpose
impl Clone for ExtendedKeyPurpose
Source§fn clone(&self) -> ExtendedKeyPurpose
fn clone(&self) -> ExtendedKeyPurpose
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExtendedKeyPurpose
impl Debug for ExtendedKeyPurpose
impl Eq for ExtendedKeyPurpose
Source§impl Hash for ExtendedKeyPurpose
impl Hash for ExtendedKeyPurpose
Source§impl PartialEq for ExtendedKeyPurpose
impl PartialEq for ExtendedKeyPurpose
impl StructuralPartialEq for ExtendedKeyPurpose
Auto Trait Implementations§
impl Freeze for ExtendedKeyPurpose
impl RefUnwindSafe for ExtendedKeyPurpose
impl Send for ExtendedKeyPurpose
impl Sync for ExtendedKeyPurpose
impl Unpin for ExtendedKeyPurpose
impl UnsafeUnpin for ExtendedKeyPurpose
impl UnwindSafe for ExtendedKeyPurpose
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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