Type Alias SubjectPublicKeyInfo

Source
pub type SubjectPublicKeyInfo<'a> = SubjectPublicKeyInfoDer<'a>;
👎Deprecated since 1.7.0: Prefer SubjectPublicKeyInfoDer instead
Expand description

A DER-encoded SubjectPublicKeyInfo (SPKI), as specified in RFC 5280.

Aliased Type§

struct SubjectPublicKeyInfo<'a>(/* private fields */);

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 24 bytes

Implementations

Source§

impl SubjectPublicKeyInfoDer<'_>

Source

pub fn into_owned(self) -> SubjectPublicKeyInfoDer<'static>

Available on crate feature alloc only.

Converts this SubjectPublicKeyInfo into its owned variant, unfreezing borrowed content (if any)

Trait Implementations

Source§

impl AsRef<[u8]> for SubjectPublicKeyInfoDer<'_>

Source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<'a> Clone for SubjectPublicKeyInfoDer<'a>

Source§

fn clone(&self) -> SubjectPublicKeyInfoDer<'a>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for SubjectPublicKeyInfoDer<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for SubjectPublicKeyInfoDer<'_>

Source§

type Target = [u8]

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<'a> From<&'a [u8]> for SubjectPublicKeyInfoDer<'a>

Source§

fn from(slice: &'a [u8]) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<u8>> for SubjectPublicKeyInfoDer<'_>

Available on crate feature alloc only.
Source§

fn from(vec: Vec<u8>) -> Self

Converts to this type from the input type.
Source§

impl<'a> PartialEq for SubjectPublicKeyInfoDer<'a>

Source§

fn eq(&self, other: &SubjectPublicKeyInfoDer<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> Eq for SubjectPublicKeyInfoDer<'a>

Source§

impl<'a> StructuralPartialEq for SubjectPublicKeyInfoDer<'a>