Struct x509_cert::ext::pkix::PolicyMappings
source · pub struct PolicyMappings(pub Vec<PolicyMapping>);
Expand description
PolicyMappings as defined in RFC 5280 Section 4.2.1.5.
PolicyMappings ::= SEQUENCE SIZE (1..MAX) OF SEQUENCE {
Tuple Fields§
§0: Vec<PolicyMapping>
Trait Implementations§
source§impl AsExtension for PolicyMappings
impl AsExtension for PolicyMappings
source§impl<'a> AsMut<Vec<PolicyMapping>> for PolicyMappings
impl<'a> AsMut<Vec<PolicyMapping>> for PolicyMappings
source§fn as_mut(&mut self) -> &mut Vec<PolicyMapping>
fn as_mut(&mut self) -> &mut Vec<PolicyMapping>
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<'a> AsRef<Vec<PolicyMapping>> for PolicyMappings
impl<'a> AsRef<Vec<PolicyMapping>> for PolicyMappings
source§fn as_ref(&self) -> &Vec<PolicyMapping>
fn as_ref(&self) -> &Vec<PolicyMapping>
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AssociatedOid for PolicyMappings
impl AssociatedOid for PolicyMappings
source§const OID: ObjectIdentifier = ID_CE_POLICY_MAPPINGS
const OID: ObjectIdentifier = ID_CE_POLICY_MAPPINGS
The OID associated with this type.
source§impl Clone for PolicyMappings
impl Clone for PolicyMappings
source§fn clone(&self) -> PolicyMappings
fn clone(&self) -> PolicyMappings
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 PolicyMappings
impl Debug for PolicyMappings
source§impl<'a> DecodeValue<'a> for PolicyMappings
impl<'a> DecodeValue<'a> for PolicyMappings
source§impl<'a> EncodeValue for PolicyMappings
impl<'a> EncodeValue for PolicyMappings
source§impl<'a> FixedTag for PolicyMappings
impl<'a> FixedTag for PolicyMappings
source§impl<'a> From<PolicyMappings> for Vec<PolicyMapping>
impl<'a> From<PolicyMappings> for Vec<PolicyMapping>
source§fn from(value: PolicyMappings) -> Self
fn from(value: PolicyMappings) -> Self
Converts to this type from the input type.
source§impl<'a> From<Vec<PolicyMapping>> for PolicyMappings
impl<'a> From<Vec<PolicyMapping>> for PolicyMappings
source§fn from(value: Vec<PolicyMapping>) -> Self
fn from(value: Vec<PolicyMapping>) -> Self
Converts to this type from the input type.
source§impl PartialEq for PolicyMappings
impl PartialEq for PolicyMappings
source§fn eq(&self, other: &PolicyMappings) -> bool
fn eq(&self, other: &PolicyMappings) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> ValueOrd for PolicyMappings
impl<'a> ValueOrd for PolicyMappings
impl Eq for PolicyMappings
impl StructuralEq for PolicyMappings
impl StructuralPartialEq for PolicyMappings
Auto Trait Implementations§
impl RefUnwindSafe for PolicyMappings
impl Send for PolicyMappings
impl Sync for PolicyMappings
impl Unpin for PolicyMappings
impl UnwindSafe for PolicyMappings
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> DynAssociatedOid for Twhere
T: AssociatedOid,
impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
source§fn oid(&self) -> ObjectIdentifier
fn oid(&self) -> ObjectIdentifier
Get the OID associated with this value.
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.