pub struct EdiPartyName {
pub name_assigner: Option<DirectoryString>,
pub party_name: DirectoryString,
}
Expand description
EDIPartyName as defined in RFC 5280 Section 4.2.1.6.
EDIPartyName ::= SEQUENCE {
nameAssigner [0] DirectoryString OPTIONAL,
partyName [1] DirectoryString
}
Note that although the module uses IMPLICIT
tagging, these tags are
EXPLICIT
because of X.680-2015 31.2.7 (c)
:
c) the "Tag Type" alternative is used and the value of "TagDefault" for
the module is IMPLICIT TAGS or AUTOMATIC TAGS, but the type defined by
"Type" is an untagged choice type, an untagged open type, or an untagged
"DummyReference" (see Rec. ITU-T X.683 | ISO/IEC 8824-4, 8.3).
See this OpenSSL bug for more details.
Fields§
§name_assigner: Option<DirectoryString>
§party_name: DirectoryString
Trait Implementations§
source§impl Clone for EdiPartyName
impl Clone for EdiPartyName
source§fn clone(&self) -> EdiPartyName
fn clone(&self) -> EdiPartyName
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 EdiPartyName
impl Debug for EdiPartyName
source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for EdiPartyName
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for EdiPartyName
source§impl<'__der_lifetime> EncodeValue for EdiPartyName
impl<'__der_lifetime> EncodeValue for EdiPartyName
source§impl PartialEq for EdiPartyName
impl PartialEq for EdiPartyName
source§fn eq(&self, other: &EdiPartyName) -> bool
fn eq(&self, other: &EdiPartyName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ValueOrd for EdiPartyName
impl ValueOrd for EdiPartyName
impl Eq for EdiPartyName
impl<'__der_lifetime> Sequence<'__der_lifetime> for EdiPartyName
impl StructuralEq for EdiPartyName
impl StructuralPartialEq for EdiPartyName
Auto Trait Implementations§
impl RefUnwindSafe for EdiPartyName
impl Send for EdiPartyName
impl Sync for EdiPartyName
impl Unpin for EdiPartyName
impl UnwindSafe for EdiPartyName
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.