Struct x509_cert::name::RdnSequence
source · pub struct RdnSequence(pub Vec<RelativeDistinguishedName>);
Expand description
X.501 RDNSequence as defined in RFC 5280 Section 4.1.2.4.
RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
Tuple Fields§
§0: Vec<RelativeDistinguishedName>
Implementations§
source§impl RdnSequence
impl RdnSequence
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for RdnSequence
impl<'arbitrary> Arbitrary<'arbitrary> for RdnSequence
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<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 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 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§fn default() -> RdnSequence
fn default() -> RdnSequence
Returns the “default value” for a type. Read more
source§impl Display for RdnSequence
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) -> 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
impl FromStr for RdnSequence
Parse an RdnSequence
string.
Follows the rules in RFC 4514.
source§impl PartialEq for RdnSequence
impl PartialEq for RdnSequence
source§fn eq(&self, other: &RdnSequence) -> bool
fn eq(&self, other: &RdnSequence) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> ValueOrd for RdnSequence
impl<'a> ValueOrd for RdnSequence
impl Eq for RdnSequence
impl StructuralEq for RdnSequence
impl StructuralPartialEq for RdnSequence
Auto Trait Implementations§
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<'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.