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 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§impl Criticality for PolicyConstraints
impl Criticality for PolicyConstraints
Source§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 EncodeValue for PolicyConstraints
impl EncodeValue for PolicyConstraints
impl Eq for PolicyConstraints
Source§impl PartialEq for PolicyConstraints
impl PartialEq for PolicyConstraints
impl<'__der_lifetime> Sequence<'__der_lifetime> for PolicyConstraints
impl StructuralPartialEq for PolicyConstraints
Auto Trait Implementations§
impl Freeze for PolicyConstraints
impl RefUnwindSafe for PolicyConstraints
impl Send for PolicyConstraints
impl Sync for PolicyConstraints
impl Unpin for PolicyConstraints
impl UnsafeUnpin 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
Source§type Error = <T as DecodeValue<'a>>::Error
type Error = <T as DecodeValue<'a>>::Error
Type returned in the event of a decoding error.
Source§fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
Attempt to decode this TLV message using the provided decoder. Read more
impl<T> DecodeOwned for Twhere
T: for<'a> Decode<'a>,
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 T
impl<T> Encode for T
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this TLV object in bytes when encoded as ASN.1 DER. Read more
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 TLV object to the provided byte slice, returning a sub-slice
containing the encoded message. Read more
Source§impl<T> IsConstructed for T
impl<T> IsConstructed for T
Source§const CONSTRUCTED: bool
const CONSTRUCTED: bool
ASN.1 constructed bit