pub struct RdnSequence(pub Vec<RelativeDistinguishedName>);Expand description
X.501 RDNSequence as defined in RFC 5280 Section 4.1.2.4.
RDNSequence ::= SEQUENCE OF RelativeDistinguishedNameTuple Fields§
§0: Vec<RelativeDistinguishedName>Implementations§
Source§impl RdnSequence
impl RdnSequence
Trait Implementations§
Source§impl<'a> AsMut<Vec<RelativeDistinguishedName>> for RdnSequence
impl<'a> AsMut<Vec<RelativeDistinguishedName>> for RdnSequence
Source§fn as_mut(&mut self) -> &mut Vec<RelativeDistinguishedName>
fn as_mut(&mut self) -> &mut Vec<RelativeDistinguishedName>
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<'a> AsRef<Vec<RelativeDistinguishedName>> for RdnSequence
impl<'a> AsRef<Vec<RelativeDistinguishedName>> for RdnSequence
Source§fn as_ref(&self) -> &Vec<RelativeDistinguishedName>
fn as_ref(&self) -> &Vec<RelativeDistinguishedName>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for RdnSequence
impl Clone for RdnSequence
Source§fn clone(&self) -> RdnSequence
fn clone(&self) -> RdnSequence
Returns a duplicate 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 RdnSequence
impl Debug for RdnSequence
Source§impl<'a> DecodeValue<'a> for RdnSequence
impl<'a> DecodeValue<'a> for RdnSequence
Source§fn decode_value<R>(
decoder: &mut R,
header: Header,
) -> Result<RdnSequence, Error>where
R: Reader<'a>,
fn decode_value<R>(
decoder: &mut R,
header: Header,
) -> Result<RdnSequence, Error>where
R: Reader<'a>,
Attempt to decode this message using the provided
Reader.Source§impl Default for RdnSequence
impl Default for RdnSequence
Source§fn default() -> RdnSequence
fn default() -> RdnSequence
Returns the “default value” for a type. Read more
Source§impl Display for RdnSequence
Serializes the structure according to the rules in RFC 4514.
impl Display for RdnSequence
Serializes the structure according to the rules in RFC 4514.
Source§impl<'a> EncodeValue for RdnSequence
impl<'a> EncodeValue for RdnSequence
Source§impl<'a> FixedTag for RdnSequence
impl<'a> FixedTag for RdnSequence
Source§impl<'a> From<RdnSequence> for Vec<RelativeDistinguishedName>
impl<'a> From<RdnSequence> for Vec<RelativeDistinguishedName>
Source§fn from(value: RdnSequence) -> Vec<RelativeDistinguishedName>
fn from(value: RdnSequence) -> Vec<RelativeDistinguishedName>
Converts to this type from the input type.
Source§impl<'a> From<Vec<RelativeDistinguishedName>> for RdnSequence
impl<'a> From<Vec<RelativeDistinguishedName>> for RdnSequence
Source§fn from(value: Vec<RelativeDistinguishedName>) -> RdnSequence
fn from(value: Vec<RelativeDistinguishedName>) -> RdnSequence
Converts to this type from the input type.
Source§impl FromStr for RdnSequence
Parse an RdnSequence string.
impl FromStr for RdnSequence
Parse an RdnSequence string.
Follows the rules in RFC 4514.
Source§impl PartialEq for RdnSequence
impl PartialEq for RdnSequence
Source§impl TryFrom<&RdnSequence> for DomainName
impl TryFrom<&RdnSequence> for DomainName
Source§type Error = ConstraintError
type Error = ConstraintError
The type returned in the event of a conversion error.
Source§impl TryFrom<ActorDN> for RdnSequence
impl TryFrom<ActorDN> for RdnSequence
Source§impl TryFrom<DomainName> for RdnSequence
impl TryFrom<DomainName> for RdnSequence
Source§impl TryFrom<HomeServerDN> for RdnSequence
impl TryFrom<HomeServerDN> for RdnSequence
Source§type Error = InvalidInput
type Error = InvalidInput
The type returned in the event of a conversion error.
Source§impl TryFrom<PolyprotoDistinguishedName> for RdnSequence
impl TryFrom<PolyprotoDistinguishedName> for RdnSequence
Source§type Error = InvalidInput
type Error = InvalidInput
The type returned in the event of a conversion error.
Source§impl TryFrom<RdnSequence> for ActorDN
impl TryFrom<RdnSequence> for ActorDN
Source§type Error = InvalidInput
type Error = InvalidInput
The type returned in the event of a conversion error.
Source§impl TryFrom<RdnSequence> for HomeServerDN
impl TryFrom<RdnSequence> for HomeServerDN
Source§type Error = InvalidInput
type Error = InvalidInput
The type returned in the event of a conversion error.
Source§impl TryFrom<RdnSequence> for PolyprotoDistinguishedName
impl TryFrom<RdnSequence> for PolyprotoDistinguishedName
Source§type Error = InvalidInput
type Error = InvalidInput
The type returned in the event of a conversion error.
Source§impl<'a> ValueOrd for RdnSequence
impl<'a> ValueOrd for RdnSequence
impl Eq for RdnSequence
impl StructuralPartialEq for RdnSequence
Auto Trait Implementations§
impl Freeze for RdnSequence
impl RefUnwindSafe for RdnSequence
impl Send for RdnSequence
impl Sync for RdnSequence
impl Unpin for RdnSequence
impl UnwindSafe for RdnSequence
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§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.