Struct x509_certificate::rfc5958::OneAsymmetricKey
source · pub struct OneAsymmetricKey {
pub version: Version,
pub private_key_algorithm: PrivateKeyAlgorithmIdentifier,
pub private_key: PrivateKey,
pub attributes: Option<Attributes>,
pub public_key: Option<PublicKey>,
}
Expand description
A single asymmetric key.
OneAsymmetricKey ::= SEQUENCE {
version Version,
privateKeyAlgorithm PrivateKeyAlgorithmIdentifier,
privateKey PrivateKey,
attributes [0] Attributes OPTIONAL,
...,
[[2: publicKey [1] PublicKey OPTIONAL ]],
...
}
Fields§
§version: Version
§private_key_algorithm: PrivateKeyAlgorithmIdentifier
§private_key: PrivateKey
§attributes: Option<Attributes>
§public_key: Option<PublicKey>
Implementations§
source§impl OneAsymmetricKey
impl OneAsymmetricKey
pub fn take_from<S: Source>( cons: &mut Constructed<'_, S> ) -> Result<Self, DecodeError<S::Error>>
pub fn encode_ref(&self) -> impl Values + '_
Trait Implementations§
source§impl Clone for OneAsymmetricKey
impl Clone for OneAsymmetricKey
source§fn clone(&self) -> OneAsymmetricKey
fn clone(&self) -> OneAsymmetricKey
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 OneAsymmetricKey
impl Debug for OneAsymmetricKey
source§impl PartialEq for OneAsymmetricKey
impl PartialEq for OneAsymmetricKey
source§fn eq(&self, other: &OneAsymmetricKey) -> bool
fn eq(&self, other: &OneAsymmetricKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OneAsymmetricKey
impl StructuralEq for OneAsymmetricKey
impl StructuralPartialEq for OneAsymmetricKey
Auto Trait Implementations§
impl RefUnwindSafe for OneAsymmetricKey
impl Send for OneAsymmetricKey
impl Sync for OneAsymmetricKey
impl Unpin for OneAsymmetricKey
impl UnwindSafe for OneAsymmetricKey
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