[−][src]Enum openssl::x509::extension::Extension
A X.509 v3 certificate extension.
Only one extension of each type is allow in a certificate. See RFC 3280 for more information about extensions.
Variants
KeyUsage(Vec<KeyUsageOption>)The purposes of the key contained in the certificate
ExtKeyUsage(Vec<ExtKeyUsageOption>)The extended purposes of the key contained in the certificate
SubjectAltName(Vec<(AltNameOption, String)>)Subject Alternative Names
IssuerAltName(Vec<(AltNameOption, String)>)Issuer Alternative Names
OtherNid(Nid, String)Arbitrary extensions by NID. See man x509v3_config for value syntax.
You must not use this to add extensions which this enum can express directly.
use openssl::x509::extension::Extension::*; use openssl::nid::Nid; generator.add_extension(OtherNid(Nid::BasicConstraints,"critical,CA:TRUE".to_owned()));
OtherStr(String, String)Arbitrary extensions by OID string. See man ASN1_generate_nconf for value syntax.
You must not use this to add extensions which this enum can express directly.
use openssl::x509::extension::Extension::*; generator.add_extension(OtherStr("2.999.2".to_owned(),"ASN1:UTF8:example value".to_owned()));
Methods
impl Extension[src]
impl Extensionpub fn get_type(&self) -> ExtensionType[src]
pub fn get_type(&self) -> ExtensionTypeTrait Implementations
impl Clone for Extension[src]
impl Clone for Extensionfn clone(&self) -> Extension[src]
fn clone(&self) -> ExtensionReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl ToString for Extension[src]
impl ToString for ExtensionAuto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToString for T where
T: Display + ?Sized, [src]
impl<T> ToString for T where
T: Display + ?Sized, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, type Owned = T
fn to_owned(&self) -> T[src]
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src]
fn clone_into(&self, target: &mut T)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more