pub enum ReferenceTarget<'view, 'document, N, D, G> {
Certificate(&'view Certificate<'document>),
Crl(&'view CertificateList<'document>),
Ocsp(&'view ResponseBytes<'document>),
Encapsulated(&'view Source<N, D, G>),
}Expand description
Original bytes available for reference comparison. Independently supplied path certificates/CRLs do not need fabricated XML material nodes. OCSP must retain its WHOLE envelope; a bare basic response is intentionally not a target.
ⓘ
use structured_xades::validation::ReferenceTarget;
fn wrong(basic: &structured_pkix::ocsp::BasicResponse<'_>) {
let _: ReferenceTarget<'_, '_, usize, u8, u8> = ReferenceTarget::Ocsp(basic);
}Variants§
Certificate(&'view Certificate<'document>)
Original parsed certificate, including an independently retained anchor.
Crl(&'view CertificateList<'document>)
Original complete or delta list, without serialization or a numeric ID.
Ocsp(&'view ResponseBytes<'document>)
Whole original successful OCSP envelope, never only its basic payload.
Encapsulated(&'view Source<N, D, G>)
Original XML-incorporated whole certificate/CRL/OCSPResponse source.
Trait Implementations§
Source§impl<'view, 'document, N: Clone, D: Clone, G: Clone> Clone for ReferenceTarget<'view, 'document, N, D, G>
impl<'view, 'document, N: Clone, D: Clone, G: Clone> Clone for ReferenceTarget<'view, 'document, N, D, G>
impl<'view, 'document, N: Copy, D: Copy, G: Copy> Copy for ReferenceTarget<'view, 'document, N, D, G>
Auto Trait Implementations§
impl<'view, 'document, N, D, G> !RefUnwindSafe for ReferenceTarget<'view, 'document, N, D, G>
impl<'view, 'document, N, D, G> !Send for ReferenceTarget<'view, 'document, N, D, G>
impl<'view, 'document, N, D, G> !Sync for ReferenceTarget<'view, 'document, N, D, G>
impl<'view, 'document, N, D, G> !UnwindSafe for ReferenceTarget<'view, 'document, N, D, G>
impl<'view, 'document, N, D, G> Forget for ReferenceTarget<'view, 'document, N, D, G>
impl<'view, 'document, N, D, G> Freeze for ReferenceTarget<'view, 'document, N, D, G>
impl<'view, 'document, N, D, G> Unpin for ReferenceTarget<'view, 'document, N, D, G>
impl<'view, 'document, N, D, G> UnsafeUnpin for ReferenceTarget<'view, 'document, N, D, G>where
&'view Source<N, D, G>: UnsafeUnpin,
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