Skip to main content

DnAttribute

Enum DnAttribute 

Source
#[non_exhaustive]
pub enum DnAttribute {
Show 24 variants CommonName(String), Surname(String), SerialNumber(String), CountryName(String), LocalityName(String), StateOrProvinceName(String), OrganizationName(String), OrganizationalUnitName(String), Title(String), Name(String), GivenName(String), Initials(String), GenerationQualifier(String), DnQualifier(String), Pseudonym(String), DomainComponent(String), NodeId(u64), IcacId(u64), RcacId(u64), FabricId(u64), CaseAuthenticatedTag(u32), VendorId(u16), ProductId(u16), Other { tag: u8, value: DnAttributeValue, },
}
Expand description

A single distinguished-name attribute.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

CommonName(String)

X.509 CommonName (CN) attribute — UTF-8 string.

§

Surname(String)

X.509 Surname (SN) attribute — UTF-8 string.

§

SerialNumber(String)

X.509 SerialNumber attribute — UTF-8 string.

§

CountryName(String)

X.509 CountryName (C) attribute — UTF-8 string (2-character ISO 3166).

§

LocalityName(String)

X.509 LocalityName (L) attribute — UTF-8 string.

§

StateOrProvinceName(String)

X.509 StateOrProvinceName (ST) attribute — UTF-8 string.

§

OrganizationName(String)

X.509 OrganizationName (O) attribute — UTF-8 string.

§

OrganizationalUnitName(String)

X.509 OrganizationalUnitName (OU) attribute — UTF-8 string.

§

Title(String)

X.509 Title attribute — UTF-8 string.

§

Name(String)

X.509 Name attribute — UTF-8 string.

§

GivenName(String)

X.509 GivenName attribute — UTF-8 string.

§

Initials(String)

X.509 Initials attribute — UTF-8 string.

§

GenerationQualifier(String)

X.509 GenerationQualifier attribute — UTF-8 string.

§

DnQualifier(String)

X.509 DnQualifier attribute — UTF-8 string.

§

Pseudonym(String)

X.509 Pseudonym attribute — UTF-8 string.

§

DomainComponent(String)

X.509 DomainComponent (DC) attribute — UTF-8 string.

§

NodeId(u64)

Matter Node Identifier (operational identity), spec §6.5.6 tag 17.

§

IcacId(u64)

Matter Intermediate CA Identifier, spec §6.5.6 tag 19.

§

RcacId(u64)

Matter Root CA Identifier, spec §6.5.6 tag 20.

§

FabricId(u64)

Matter Fabric Identifier, spec §6.5.6 tag 21.

§

CaseAuthenticatedTag(u32)

Matter CASE Authenticated Tag (NOC-CAT), spec §6.5.6 tag 22.

§

VendorId(u16)

Matter Vendor Identifier (attestation certificates), CSA OID 1.3.6.1.4.1.37244.2.1.

Used in DAC/PAI/PAA X.509 attestation certificate DNs (Matter §6.5.6.1), where the value is a 4-character UPPERCASE-hex PrintableString (e.g. 0xFFF1"FFF1"). This is an X.509-only attribute: it has no Matter operational-TLV cert encoding (those certs use the node/fabric/icac/rcac/case-tag identifiers above).

§

ProductId(u16)

Matter Product Identifier (attestation certificates), CSA OID 1.3.6.1.4.1.37244.2.2.

Used in DAC/PAI X.509 attestation certificate DNs (Matter §6.5.6.1), where the value is a 4-character UPPERCASE-hex PrintableString (e.g. 0x8001"8001"). Like DnAttribute::VendorId, this is an X.509-only attribute with no Matter operational-TLV cert encoding.

§

Other

Forward-compatibility fallback for spec-defined attributes the typed variants above don’t enumerate yet (e.g., tag 18 matter-firmware-signing-id, tags 23-26 vid/pid variants).

Fields

§tag: u8

Context tag number from the wire.

§value: DnAttributeValue

Value decoded from the wire with its TLV type preserved.

Trait Implementations§

Source§

impl Clone for DnAttribute

Source§

fn clone(&self) -> DnAttribute

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DnAttribute

Source§

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

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

impl Eq for DnAttribute

Source§

impl PartialEq for DnAttribute

Source§

fn eq(&self, other: &DnAttribute) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DnAttribute

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.