Struct x509_cert::ext::pkix::constraints::PolicyConstraints
source · pub struct PolicyConstraints {
pub require_explicit_policy: Option<u32>,
pub inhibit_policy_mapping: Option<u32>,
}
Expand description
Policy constraints extension as defined in RFC 5280 Section 4.2.1.11.
PolicyConstraints ::= SEQUENCE {
requireExplicitPolicy [0] SkipCerts OPTIONAL,
inhibitPolicyMapping [1] SkipCerts OPTIONAL
}
Fields§
§require_explicit_policy: Option<u32>
§inhibit_policy_mapping: Option<u32>
Trait Implementations§
source§impl AsExtension for PolicyConstraints
impl AsExtension for PolicyConstraints
source§impl AssociatedOid for PolicyConstraints
impl AssociatedOid for PolicyConstraints
source§const OID: ObjectIdentifier = ID_CE_POLICY_CONSTRAINTS
const OID: ObjectIdentifier = ID_CE_POLICY_CONSTRAINTS
The OID associated with this type.
source§impl Clone for PolicyConstraints
impl Clone for PolicyConstraints
source§fn clone(&self) -> PolicyConstraints
fn clone(&self) -> PolicyConstraints
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 PolicyConstraints
impl Debug for PolicyConstraints
source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for PolicyConstraints
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for PolicyConstraints
source§impl<'__der_lifetime> EncodeValue for PolicyConstraints
impl<'__der_lifetime> EncodeValue for PolicyConstraints
source§impl PartialEq for PolicyConstraints
impl PartialEq for PolicyConstraints
source§fn eq(&self, other: &PolicyConstraints) -> bool
fn eq(&self, other: &PolicyConstraints) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PolicyConstraints
impl<'__der_lifetime> Sequence<'__der_lifetime> for PolicyConstraints
impl StructuralEq for PolicyConstraints
impl StructuralPartialEq for PolicyConstraints
Auto Trait Implementations§
impl RefUnwindSafe for PolicyConstraints
impl Send for PolicyConstraints
impl Sync for PolicyConstraints
impl Unpin for PolicyConstraints
impl UnwindSafe for PolicyConstraints
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.