pub enum Pkcs8Version {
V1,
V2,
}Expand description
PKCS#8 version for OneAsymmetricKey / PrivateKeyInfo.
RFC 5958 §2 defines two versions:
- v1 (0): PrivateKeyInfo — unencrypted, no public key field
- v2 (1): OneAsymmetricKey — may include the public key
Variants§
V1
PrivateKeyInfo (RFC 5958 §2, version 0). No public key field.
V2
OneAsymmetricKey (RFC 5958 §2, version 1). Includes optional public key.
Trait Implementations§
Source§impl Clone for Pkcs8Version
impl Clone for Pkcs8Version
Source§fn clone(&self) -> Pkcs8Version
fn clone(&self) -> Pkcs8Version
Returns a duplicate 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 Pkcs8Version
impl Debug for Pkcs8Version
Source§impl PartialEq for Pkcs8Version
impl PartialEq for Pkcs8Version
impl Copy for Pkcs8Version
impl Eq for Pkcs8Version
impl StructuralPartialEq for Pkcs8Version
Auto Trait Implementations§
impl Freeze for Pkcs8Version
impl RefUnwindSafe for Pkcs8Version
impl Send for Pkcs8Version
impl Sync for Pkcs8Version
impl Unpin for Pkcs8Version
impl UnsafeUnpin for Pkcs8Version
impl UnwindSafe for Pkcs8Version
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