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<'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<'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 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.