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 AttributeTypeAndValueNote 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<'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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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§fn decode_value<R: Reader<'a>>(decoder: &mut R, header: Header) -> Result<Self>
fn decode_value<R: Reader<'a>>(decoder: &mut R, header: Header) -> Result<Self>
Attempt to decode this message using the provided [
Reader].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
Serializes the structure according to the rules in RFC 4514.
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
Parse a RelativeDistinguishedName string.
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
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 StructuralPartialEq for RelativeDistinguishedName
Auto Trait Implementations§
impl Freeze for RelativeDistinguishedName
impl RefUnwindSafe for RelativeDistinguishedName
impl Send for RelativeDistinguishedName
impl Sync for RelativeDistinguishedName
impl Unpin for RelativeDistinguishedName
impl UnsafeUnpin 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
§impl<'a, T> Choice<'a> for Twhere
T: Decode<'a> + FixedTag,
impl<'a, T> Choice<'a> for Twhere
T: Decode<'a> + FixedTag,
§fn can_decode(tag: Tag) -> bool
fn can_decode(tag: Tag) -> bool
Is the provided [
Tag] decodable as a variant of this CHOICE?Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
§impl<T> DerOrd for Twhere
T: EncodeValue + ValueOrd + Tagged,
impl<T> DerOrd for Twhere
T: EncodeValue + ValueOrd + Tagged,
§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
§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.
§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].
§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.
§fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length, Error>
fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length, Error>
Encode this message as ASN.1 DER, appending it to the provided
byte vector.