Struct x509_cert::ext::pkix::SubjectAltName
source · pub struct SubjectAltName(pub GeneralNames);
Expand description
SubjectAltName as defined in RFC 5280 Section 4.2.1.6.
SubjectAltName ::= GeneralNames
Tuple Fields§
§0: GeneralNames
Trait Implementations§
source§impl AsExtension for SubjectAltName
impl AsExtension for SubjectAltName
source§impl<'a> AsMut<Vec<GeneralName>> for SubjectAltName
impl<'a> AsMut<Vec<GeneralName>> for SubjectAltName
source§fn as_mut(&mut self) -> &mut GeneralNames
fn as_mut(&mut self) -> &mut GeneralNames
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<'a> AsRef<Vec<GeneralName>> for SubjectAltName
impl<'a> AsRef<Vec<GeneralName>> for SubjectAltName
source§fn as_ref(&self) -> &GeneralNames
fn as_ref(&self) -> &GeneralNames
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AssociatedOid for SubjectAltName
impl AssociatedOid for SubjectAltName
source§const OID: ObjectIdentifier = ID_CE_SUBJECT_ALT_NAME
const OID: ObjectIdentifier = ID_CE_SUBJECT_ALT_NAME
The OID associated with this type.
source§impl Clone for SubjectAltName
impl Clone for SubjectAltName
source§fn clone(&self) -> SubjectAltName
fn clone(&self) -> SubjectAltName
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 SubjectAltName
impl Debug for SubjectAltName
source§impl<'a> DecodeValue<'a> for SubjectAltName
impl<'a> DecodeValue<'a> for SubjectAltName
source§impl Default for SubjectAltName
impl Default for SubjectAltName
source§fn default() -> SubjectAltName
fn default() -> SubjectAltName
Returns the “default value” for a type. Read more
source§impl<'a> EncodeValue for SubjectAltName
impl<'a> EncodeValue for SubjectAltName
source§impl<'a> FixedTag for SubjectAltName
impl<'a> FixedTag for SubjectAltName
source§impl<'a> From<SubjectAltName> for GeneralNames
impl<'a> From<SubjectAltName> for GeneralNames
source§fn from(value: SubjectAltName) -> Self
fn from(value: SubjectAltName) -> Self
Converts to this type from the input type.
source§impl<'a> From<Vec<GeneralName>> for SubjectAltName
impl<'a> From<Vec<GeneralName>> for SubjectAltName
source§fn from(value: GeneralNames) -> Self
fn from(value: GeneralNames) -> Self
Converts to this type from the input type.
source§impl PartialEq for SubjectAltName
impl PartialEq for SubjectAltName
source§fn eq(&self, other: &SubjectAltName) -> bool
fn eq(&self, other: &SubjectAltName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> ValueOrd for SubjectAltName
impl<'a> ValueOrd for SubjectAltName
impl Eq for SubjectAltName
impl StructuralEq for SubjectAltName
impl StructuralPartialEq for SubjectAltName
Auto Trait Implementations§
impl RefUnwindSafe for SubjectAltName
impl Send for SubjectAltName
impl Sync for SubjectAltName
impl Unpin for SubjectAltName
impl UnwindSafe for SubjectAltName
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.