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