Type Alias spki::SubjectPublicKeyInfoOwned
source · pub type SubjectPublicKeyInfoOwned = SubjectPublicKeyInfo<Any, BitString>;
Expand description
SubjectPublicKeyInfo
with Any
algorithm parameters, and BitString
params.
Aliased Type§
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: BitString
Public key data
Implementations§
source§impl SubjectPublicKeyInfoOwned
impl SubjectPublicKeyInfoOwned
sourcepub fn from_key<T>(source: T) -> Result<Self>where
T: EncodePublicKey,
pub fn from_key<T>(source: T) -> Result<Self>where
T: EncodePublicKey,
Create a SubjectPublicKeyInfoOwned
from any object that implements
EncodePublicKey
.
Trait Implementations§
source§impl OwnedToRef for SubjectPublicKeyInfoOwned
impl OwnedToRef for SubjectPublicKeyInfoOwned
§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
source§impl<Params: Clone, Key: Clone> Clone for SubjectPublicKeyInfo<Params, Key>
impl<Params: Clone, Key: Clone> Clone for SubjectPublicKeyInfo<Params, Key>
source§fn clone(&self) -> SubjectPublicKeyInfo<Params, Key>
fn clone(&self) -> SubjectPublicKeyInfo<Params, Key>
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<'a: 'k, 'k, Params, Key> DecodeValue<'a> for SubjectPublicKeyInfo<Params, Key>
impl<'a: 'k, 'k, Params, Key> DecodeValue<'a> for SubjectPublicKeyInfo<Params, Key>
source§impl<'a, Params, Key> EncodeValue for SubjectPublicKeyInfo<Params, Key>
impl<'a, Params, Key> EncodeValue for SubjectPublicKeyInfo<Params, Key>
source§impl<Params: PartialEq, Key: PartialEq> PartialEq for SubjectPublicKeyInfo<Params, Key>
impl<Params: PartialEq, Key: PartialEq> PartialEq for SubjectPublicKeyInfo<Params, Key>
source§fn eq(&self, other: &SubjectPublicKeyInfo<Params, Key>) -> bool
fn eq(&self, other: &SubjectPublicKeyInfo<Params, Key>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.