Struct x509_cert::name::RelativeDistinguishedName
source · pub struct RelativeDistinguishedName(pub SetOfVec<AttributeTypeAndValue>);
Expand description
RelativeDistinguishedName as defined in RFC 5280 Section 4.1.2.4.
RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndValue
Note that we follow the more common definition above. This technically differs from the definition in X.501, which is:
RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndDistinguishedValue
AttributeTypeAndDistinguishedValue ::= SEQUENCE {
type ATTRIBUTE.&id ({SupportedAttributes}),
value ATTRIBUTE.&Type({SupportedAttributes}{@type}),
primaryDistinguished BOOLEAN DEFAULT TRUE,
valuesWithContext SET SIZE (1..MAX) OF SEQUENCE {
distingAttrValue [0] ATTRIBUTE.&Type ({SupportedAttributes}{@type}) OPTIONAL,
contextList SET SIZE (1..MAX) OF Context
} OPTIONAL
}
Tuple Fields§
§0: SetOfVec<AttributeTypeAndValue>
Implementations§
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for RelativeDistinguishedName
impl<'arbitrary> Arbitrary<'arbitrary> for RelativeDistinguishedName
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl<'a> AsMut<SetOfVec<AttributeTypeAndValue>> for RelativeDistinguishedName
impl<'a> AsMut<SetOfVec<AttributeTypeAndValue>> for RelativeDistinguishedName
source§fn as_mut(&mut self) -> &mut SetOfVec<AttributeTypeAndValue>
fn as_mut(&mut self) -> &mut SetOfVec<AttributeTypeAndValue>
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<'a> AsRef<SetOfVec<AttributeTypeAndValue>> for RelativeDistinguishedName
impl<'a> AsRef<SetOfVec<AttributeTypeAndValue>> for RelativeDistinguishedName
source§fn as_ref(&self) -> &SetOfVec<AttributeTypeAndValue>
fn as_ref(&self) -> &SetOfVec<AttributeTypeAndValue>
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for RelativeDistinguishedName
impl Clone for RelativeDistinguishedName
source§fn clone(&self) -> RelativeDistinguishedName
fn clone(&self) -> RelativeDistinguishedName
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 RelativeDistinguishedName
impl Debug for RelativeDistinguishedName
source§impl<'a> DecodeValue<'a> for RelativeDistinguishedName
impl<'a> DecodeValue<'a> for RelativeDistinguishedName
source§impl Default for RelativeDistinguishedName
impl Default for RelativeDistinguishedName
source§fn default() -> RelativeDistinguishedName
fn default() -> RelativeDistinguishedName
Returns the “default value” for a type. Read more
source§impl Display for RelativeDistinguishedName
impl Display for RelativeDistinguishedName
Serializes the structure according to the rules in RFC 4514.
source§impl<'a> EncodeValue for RelativeDistinguishedName
impl<'a> EncodeValue for RelativeDistinguishedName
source§impl<'a> FixedTag for RelativeDistinguishedName
impl<'a> FixedTag for RelativeDistinguishedName
source§impl<'a> From<RelativeDistinguishedName> for SetOfVec<AttributeTypeAndValue>
impl<'a> From<RelativeDistinguishedName> for SetOfVec<AttributeTypeAndValue>
source§fn from(value: RelativeDistinguishedName) -> Self
fn from(value: RelativeDistinguishedName) -> Self
Converts to this type from the input type.
source§impl<'a> From<SetOfVec<AttributeTypeAndValue>> for RelativeDistinguishedName
impl<'a> From<SetOfVec<AttributeTypeAndValue>> for RelativeDistinguishedName
source§fn from(value: SetOfVec<AttributeTypeAndValue>) -> Self
fn from(value: SetOfVec<AttributeTypeAndValue>) -> Self
Converts to this type from the input type.
source§impl FromStr for RelativeDistinguishedName
impl FromStr for RelativeDistinguishedName
Parse a RelativeDistinguishedName
string.
This function follows the rules in RFC 4514.
source§impl PartialEq for RelativeDistinguishedName
impl PartialEq for RelativeDistinguishedName
source§fn eq(&self, other: &RelativeDistinguishedName) -> bool
fn eq(&self, other: &RelativeDistinguishedName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Vec<AttributeTypeAndValue>> for RelativeDistinguishedName
impl TryFrom<Vec<AttributeTypeAndValue>> for RelativeDistinguishedName
source§fn try_from(
vec: Vec<AttributeTypeAndValue>
) -> Result<RelativeDistinguishedName>
fn try_from( vec: Vec<AttributeTypeAndValue> ) -> Result<RelativeDistinguishedName>
Performs the conversion.
source§impl<'a> ValueOrd for RelativeDistinguishedName
impl<'a> ValueOrd for RelativeDistinguishedName
impl Eq for RelativeDistinguishedName
impl StructuralEq for RelativeDistinguishedName
impl StructuralPartialEq for RelativeDistinguishedName
Auto Trait Implementations§
impl RefUnwindSafe for RelativeDistinguishedName
impl Send for RelativeDistinguishedName
impl Sync for RelativeDistinguishedName
impl Unpin for RelativeDistinguishedName
impl UnwindSafe for RelativeDistinguishedName
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> 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.