pub enum Usage {
certsign,
crlsign,
encipherment,
clientauth,
serverauth,
signature,
contentcommitment,
}Expand description
Represents the allowed usages for a certificate, used in KeyUsage and ExtendedKeyUsage extensions.
Variants§
certsign
Allows the certificate to sign other certificates (typically used for CA certificates).
crlsign
Allows the certificate to sign certificate revocation lists (CRLs).
encipherment
Allows the certificate to be used for encrypting data (e.g., key encipherment).
clientauth
Indicates the certificate can be used for client authentication in TLS.
serverauth
Indicates the certificate can be used for server authentication in TLS.
signature
Allows the certificate to be used for digital signatures.
contentcommitment
Indicates the certificate can be used for content commitment (non-repudiation).
Trait Implementations§
impl Eq for Usage
impl StructuralPartialEq for Usage
Auto Trait Implementations§
impl Freeze for Usage
impl RefUnwindSafe for Usage
impl Send for Usage
impl Sync for Usage
impl Unpin for Usage
impl UnsafeUnpin for Usage
impl UnwindSafe for Usage
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