pub struct RdnSequence(/* private fields */);Expand description
X.501 RDNSequence as defined in RFC 5280 Section 4.1.2.4.
RDNSequence ::= SEQUENCE OF RelativeDistinguishedNameImplementations§
Source§impl RdnSequence
impl RdnSequence
Sourcepub fn encode_from_string(s: &str) -> Result<Vec<u8>, Error>
👎Deprecated since 0.2.1: use RdnSequence::from_str(…)?.to_der()
pub fn encode_from_string(s: &str) -> Result<Vec<u8>, Error>
use RdnSequence::from_str(…)?.to_der()
Converts an RDNSequence string into an encoded RDNSequence.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Is this RdnSequence empty?
Sourcepub fn iter(&self) -> impl Iterator<Item = &RelativeDistinguishedName>
pub fn iter(&self) -> impl Iterator<Item = &RelativeDistinguishedName>
Iterate over this RdnSequence.
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Length of this RdnSequence.
Sourcepub fn push(&mut self, name: RelativeDistinguishedName)
pub fn push(&mut self, name: RelativeDistinguishedName)
Push a RelativeDistinguishedName onto this 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 AsRef<RdnSequence> for Name
impl AsRef<RdnSequence> for Name
Source§fn as_ref(&self) -> &RdnSequence
fn as_ref(&self) -> &RdnSequence
Converts this type into a shared 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§impl Debug for RdnSequence
impl Debug for RdnSequence
Source§impl<'a> DecodeValue<'a> for RdnSequence
impl<'a> DecodeValue<'a> for RdnSequence
Source§impl Default for RdnSequence
impl Default for RdnSequence
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
impl Eq for RdnSequence
Source§impl<'a> FixedTag for RdnSequence
impl<'a> FixedTag for RdnSequence
Source§impl From<Name> for RdnSequence
impl From<Name> for RdnSequence
Source§impl<'a> From<RdnSequence> for Vec<RelativeDistinguishedName>
impl<'a> From<RdnSequence> for Vec<RelativeDistinguishedName>
Source§fn from(value: RdnSequence) -> Self
fn from(value: RdnSequence) -> Self
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>) -> Self
fn from(value: Vec<RelativeDistinguishedName>) -> Self
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 Hash for RdnSequence
impl Hash for RdnSequence
Source§impl PartialEq for RdnSequence
impl PartialEq 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 UnsafeUnpin 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 + 'a,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
Source§type Error = <T as DecodeValue<'a>>::Error
type Error = <T as DecodeValue<'a>>::Error
Type returned in the event of a decoding error.
Source§fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
Attempt to decode this TLV message using the provided decoder. Read more
impl<T> DecodeOwned for Twhere
T: for<'a> Decode<'a>,
Source§impl<T> Encode for T
impl<T> Encode for T
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this TLV object in bytes when encoded as ASN.1 DER. Read more
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 TLV object to the provided byte slice, returning a sub-slice
containing the encoded message. Read more
Source§impl<T> IsConstructed for T
impl<T> IsConstructed for T
Source§const CONSTRUCTED: bool
const CONSTRUCTED: bool
ASN.1 constructed bit