pub struct CertificateTrustList {
pub version: CtlVersion,
pub subject_usage: SubjectUsage,
pub list_identifier: Option<ListIdentifier>,
pub sequence_number: Option<Uint>,
pub this_update: Time,
pub next_update: Option<Time>,
pub subject_algorithm: AlgorithmIdentifier<Any>,
pub trusted_subjects: Option<TrustedSubjects>,
pub ctl_extensions: Option<Any>,
}Expand description
The certificate trust list.
From MS-CAESO, pages 47-48:
CertificateTrustList ::= SEQUENCE {
version CTLVersion DEFAULT v1,
subjectUsage SubjectUsage,
listIdentifier ListIdentifier OPTIONAL,
sequenceNumber HUGEINTEGER OPTIONAL,
ctlThisUpdate ChoiceOfTime,
ctlNextUpdate ChoiceOfTime OPTIONAL,
subjectAlgorithm AlgorithmIdentifier,
trustedSubjects TrustedSubjects OPTIONAL,
ctlExtensions [0] EXPLICIT Extensions OPTIONAL
}Fields§
§version: CtlVersionThis trust list’s version. The default version is 1.
subject_usage: SubjectUsageX.509-style usage.
list_identifier: Option<ListIdentifier>See MS-CAESO page 48.
sequence_number: Option<Uint>Some kind of sequence number; purpose unknown.
this_update: TimeX.509-style time for when this CTL was produced/released.
next_update: Option<Time>X.509-style time for when the next CTL will be produced/released.
subject_algorithm: AlgorithmIdentifier<Any>Presumably the digest algorithm used to compute each TrustedSubjects’s identifier.
trusted_subjects: Option<TrustedSubjects>The list of trusted subjects in this CTL.
ctl_extensions: Option<Any>Any X.509 style extensions.
Implementations§
Trait Implementations§
Source§impl Clone for CertificateTrustList
impl Clone for CertificateTrustList
Source§fn clone(&self) -> CertificateTrustList
fn clone(&self) -> CertificateTrustList
Returns a duplicate 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 CertificateTrustList
impl Debug for CertificateTrustList
Source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for CertificateTrustList
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for CertificateTrustList
Source§impl<'__der_lifetime> EncodeValue for CertificateTrustList
impl<'__der_lifetime> EncodeValue for CertificateTrustList
Source§impl PartialEq for CertificateTrustList
impl PartialEq for CertificateTrustList
impl Eq for CertificateTrustList
impl<'__der_lifetime> Sequence<'__der_lifetime> for CertificateTrustList
impl StructuralPartialEq for CertificateTrustList
Auto Trait Implementations§
impl Freeze for CertificateTrustList
impl RefUnwindSafe for CertificateTrustList
impl Send for CertificateTrustList
impl Sync for CertificateTrustList
impl Unpin for CertificateTrustList
impl UnwindSafe for CertificateTrustList
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,
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.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more