pub struct CertificationRequestInfo {
pub version: u8,
pub subject: Name,
pub subject_public_key_info: SubjectPublicKeyInfo,
pub attributes: OpenSslAttributes,
}
Expand description
CertificationRequestInfo ::= SEQUENCE {
version INTEGER { v1(0) } (v1,...),
subject Name,
subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }},
attributes [0] Attributes{{ CRIAttributes }}
}
Fields§
§version: u8
§subject: Name
§subject_public_key_info: SubjectPublicKeyInfo
§attributes: OpenSslAttributes
Implementations§
source§impl CertificationRequestInfo
impl CertificationRequestInfo
pub fn new(subject: Name, subject_public_key_info: SubjectPublicKeyInfo) -> Self
pub fn with_attribute(self, attribute: Attribute) -> Self
pub fn add_attribute(&mut self, attribute: Attribute)
Trait Implementations§
source§impl Clone for CertificationRequestInfo
impl Clone for CertificationRequestInfo
source§fn clone(&self) -> CertificationRequestInfo
fn clone(&self) -> CertificationRequestInfo
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 CertificationRequestInfo
impl Debug for CertificationRequestInfo
source§impl<'de> Deserialize<'de> for CertificationRequestInfo
impl<'de> Deserialize<'de> for CertificationRequestInfo
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 CertificationRequestInfo
impl PartialEq for CertificationRequestInfo
source§fn eq(&self, other: &CertificationRequestInfo) -> bool
fn eq(&self, other: &CertificationRequestInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CertificationRequestInfo
impl Serialize for CertificationRequestInfo
impl StructuralPartialEq for CertificationRequestInfo
Auto Trait Implementations§
impl Freeze for CertificationRequestInfo
impl RefUnwindSafe for CertificationRequestInfo
impl Send for CertificationRequestInfo
impl Sync for CertificationRequestInfo
impl Unpin for CertificationRequestInfo
impl UnwindSafe for CertificationRequestInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)