Struct x509_cert::ext::pkix::SubjectKeyIdentifier
source · pub struct SubjectKeyIdentifier(pub OctetString);
Expand description
SubjectKeyIdentifier as defined in RFC 5280 Section 4.2.1.2.
SubjectKeyIdentifier ::= KeyIdentifier
Tuple Fields§
§0: OctetString
Trait Implementations§
source§impl AsExtension for SubjectKeyIdentifier
impl AsExtension for SubjectKeyIdentifier
source§impl<'a> AsMut<OctetString> for SubjectKeyIdentifier
impl<'a> AsMut<OctetString> for SubjectKeyIdentifier
source§fn as_mut(&mut self) -> &mut OctetString
fn as_mut(&mut self) -> &mut OctetString
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<'a> AsRef<OctetString> for SubjectKeyIdentifier
impl<'a> AsRef<OctetString> for SubjectKeyIdentifier
source§fn as_ref(&self) -> &OctetString
fn as_ref(&self) -> &OctetString
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AssociatedOid for SubjectKeyIdentifier
impl AssociatedOid for SubjectKeyIdentifier
source§const OID: ObjectIdentifier = ID_CE_SUBJECT_KEY_IDENTIFIER
const OID: ObjectIdentifier = ID_CE_SUBJECT_KEY_IDENTIFIER
The OID associated with this type.
source§impl Clone for SubjectKeyIdentifier
impl Clone for SubjectKeyIdentifier
source§fn clone(&self) -> SubjectKeyIdentifier
fn clone(&self) -> SubjectKeyIdentifier
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 Debug for SubjectKeyIdentifier
impl Debug for SubjectKeyIdentifier
source§impl<'a> DecodeValue<'a> for SubjectKeyIdentifier
impl<'a> DecodeValue<'a> for SubjectKeyIdentifier
source§impl<'a> EncodeValue for SubjectKeyIdentifier
impl<'a> EncodeValue for SubjectKeyIdentifier
source§impl<'a> FixedTag for SubjectKeyIdentifier
impl<'a> FixedTag for SubjectKeyIdentifier
source§impl<'a> From<OctetString> for SubjectKeyIdentifier
impl<'a> From<OctetString> for SubjectKeyIdentifier
source§fn from(value: OctetString) -> Self
fn from(value: OctetString) -> Self
Converts to this type from the input type.
source§impl<'a> From<SubjectKeyIdentifier> for OctetString
impl<'a> From<SubjectKeyIdentifier> for OctetString
source§fn from(value: SubjectKeyIdentifier) -> Self
fn from(value: SubjectKeyIdentifier) -> Self
Converts to this type from the input type.
source§impl PartialEq for SubjectKeyIdentifier
impl PartialEq for SubjectKeyIdentifier
source§fn eq(&self, other: &SubjectKeyIdentifier) -> bool
fn eq(&self, other: &SubjectKeyIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> TryFrom<SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>> for SubjectKeyIdentifier
Available on crate feature builder
only.
impl<'a> TryFrom<SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>> for SubjectKeyIdentifier
Available on crate feature
builder
only.source§impl<'a> ValueOrd for SubjectKeyIdentifier
impl<'a> ValueOrd for SubjectKeyIdentifier
impl Eq for SubjectKeyIdentifier
impl StructuralEq for SubjectKeyIdentifier
impl StructuralPartialEq for SubjectKeyIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for SubjectKeyIdentifier
impl Send for SubjectKeyIdentifier
impl Sync for SubjectKeyIdentifier
impl Unpin for SubjectKeyIdentifier
impl UnwindSafe for SubjectKeyIdentifier
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
source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
source§impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
source§fn oid(&self) -> ObjectIdentifier
fn oid(&self) -> ObjectIdentifier
Get the OID associated with this value.
source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.