pub struct ExtendedKeyUsage {
pub name: Option<String>,
pub oid: Option<String>,
}
Expand description
The Extended Key Usage X.509 v3 extension defines one or more purposes for which the public key can be used. This is in addition to or in place of the basic purposes specified by the Key Usage extension.
Fields§
§name: Option<String>
The name of an Extended Key Usage value.
oid: Option<String>
An object identifier (OID) for the extension value. OIDs are strings of numbers separated by periods. The following OIDs are defined in RFC 3280 and RFC 5280.
-
1.3.6.1.5.5.7.3.1 (TLSWEBSERVERAUTHENTICATION)
-
1.3.6.1.5.5.7.3.2 (TLSWEBCLIENTAUTHENTICATION)
-
1.3.6.1.5.5.7.3.3 (CODESIGNING)
-
1.3.6.1.5.5.7.3.4 (EMAILPROTECTION)
-
1.3.6.1.5.5.7.3.8 (TIMESTAMPING)
-
1.3.6.1.5.5.7.3.9 (OCSPSIGNING)
-
1.3.6.1.5.5.7.3.5 (IPSECENDSYSTEM)
-
1.3.6.1.5.5.7.3.6 (IPSECTUNNEL)
-
1.3.6.1.5.5.7.3.7 (IPSECUSER)
Trait Implementations§
Source§impl Clone for ExtendedKeyUsage
impl Clone for ExtendedKeyUsage
Source§fn clone(&self) -> ExtendedKeyUsage
fn clone(&self) -> ExtendedKeyUsage
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 ExtendedKeyUsage
impl Debug for ExtendedKeyUsage
Source§impl Default for ExtendedKeyUsage
impl Default for ExtendedKeyUsage
Source§fn default() -> ExtendedKeyUsage
fn default() -> ExtendedKeyUsage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExtendedKeyUsage
impl<'de> Deserialize<'de> for ExtendedKeyUsage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExtendedKeyUsage
impl PartialEq for ExtendedKeyUsage
impl StructuralPartialEq for ExtendedKeyUsage
Auto Trait Implementations§
impl Freeze for ExtendedKeyUsage
impl RefUnwindSafe for ExtendedKeyUsage
impl Send for ExtendedKeyUsage
impl Sync for ExtendedKeyUsage
impl Unpin for ExtendedKeyUsage
impl UnwindSafe for ExtendedKeyUsage
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