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
sourceimpl OneAsymmetricKey
impl OneAsymmetricKey
pub fn take_from<S: Source>(
cons: &mut Constructed<'_, S>
) -> Result<Self, S::Err>
pub fn encode_ref(&self) -> impl Values + '_
Trait Implementations
sourceimpl Clone for OneAsymmetricKey
impl Clone for OneAsymmetricKey
sourcefn clone(&self) -> OneAsymmetricKey
fn clone(&self) -> OneAsymmetricKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OneAsymmetricKey
impl Debug for OneAsymmetricKey
sourceimpl PartialEq<OneAsymmetricKey> for OneAsymmetricKey
impl PartialEq<OneAsymmetricKey> for OneAsymmetricKey
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &OneAsymmetricKey) -> bool
fn ne(&self, other: &OneAsymmetricKey) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more