pub type SubjectPublicKeyInfoOwned = SubjectPublicKeyInfo<Any, BitString>;Expand description
SubjectPublicKeyInfo with Any algorithm parameters, and BitString params.
This is the owning-pendant to SubjectPublicKeyInfoRef.
Aliased Type§
pub struct SubjectPublicKeyInfoOwned {
pub algorithm: AlgorithmIdentifier<Any>,
pub subject_public_key: BitString,
}Fields§
§algorithm: AlgorithmIdentifier<Any>X.509 AlgorithmIdentifier for the public key type
subject_public_key: BitStringPublic key data
Implementations§
Source§impl SubjectPublicKeyInfoOwned
impl SubjectPublicKeyInfoOwned
Sourcepub fn from_key<T: EncodePublicKey>(source: &T) -> Result<Self>
pub fn from_key<T: EncodePublicKey>(source: &T) -> Result<Self>
Create a SubjectPublicKeyInfoOwned from any object that implements
EncodePublicKey.
§Errors
Propagates encoding and decoding errors.
Trait Implementations§
Source§impl OwnedToRef for SubjectPublicKeyInfoOwned
impl OwnedToRef for SubjectPublicKeyInfoOwned
Source§type Borrowed<'a> = SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>
type Borrowed<'a> = SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>
The resulting type referencing back to Self
Source§fn owned_to_ref(&self) -> Self::Borrowed<'_>
fn owned_to_ref(&self) -> Self::Borrowed<'_>
Creates a new object referencing back to the self for storage