pub type Name = Vec<IndexMap<AttributeType, Value<String>>>;
Expand description
An X501 Name (or DistinguishedName, aka DN): a DN consists of a sequence of
RelativeDistinguishedName (RDN). An RDN is an ordered set of attribute type
and value pairs. Within an RDN, each attribute type can only appear once.
Therefore, we represent a name as a vector of RDN, and each RDN is represented
by a map. The order of the vector is important: changing the order changes
the name. The order within the map is not important but we use an IndexMap
to make the consumers of this template use a deterministic order.