pub struct RevocationInfoChoices(_);Expand description
Revocation info choices.
RevocationInfoChoices ::= SET OF RevocationInfoChoice
Implementations§
source§impl RevocationInfoChoices
impl RevocationInfoChoices
sourcepub fn take_from<S: Source>(
cons: &mut Constructed<'_, S>
) -> Result<Self, DecodeError<S::Error>>
pub fn take_from<S: Source>(
cons: &mut Constructed<'_, S>
) -> Result<Self, DecodeError<S::Error>>
Examples found in repository?
src/asn1/rfc5652.rs (line 185)
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
pub fn take_from<S: Source>(cons: &mut Constructed<S>) -> Result<Self, DecodeError<S::Error>> {
cons.take_sequence(|cons| {
let version = CmsVersion::take_from(cons)?;
let digest_algorithms = DigestAlgorithmIdentifiers::take_from(cons)?;
let content_info = EncapsulatedContentInfo::take_from(cons)?;
let certificates =
cons.take_opt_constructed_if(Tag::CTX_0, |cons| CertificateSet::take_from(cons))?;
let crls = cons.take_opt_constructed_if(Tag::CTX_1, |cons| {
RevocationInfoChoices::take_from(cons)
})?;
let signer_infos = SignerInfos::take_from(cons)?;
Ok(Self {
version,
digest_algorithms,
content_info,
certificates,
crls,
signer_infos,
})
})
}Trait Implementations§
source§impl Clone for RevocationInfoChoices
impl Clone for RevocationInfoChoices
source§fn clone(&self) -> RevocationInfoChoices
fn clone(&self) -> RevocationInfoChoices
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 RevocationInfoChoices
impl Debug for RevocationInfoChoices
source§impl PartialEq<RevocationInfoChoices> for RevocationInfoChoices
impl PartialEq<RevocationInfoChoices> for RevocationInfoChoices
source§fn eq(&self, other: &RevocationInfoChoices) -> bool
fn eq(&self, other: &RevocationInfoChoices) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for RevocationInfoChoices
impl StructuralEq for RevocationInfoChoices
impl StructuralPartialEq for RevocationInfoChoices
Auto Trait Implementations§
impl RefUnwindSafe for RevocationInfoChoices
impl Send for RevocationInfoChoices
impl Sync for RevocationInfoChoices
impl Unpin for RevocationInfoChoices
impl UnwindSafe for RevocationInfoChoices
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.