Struct cryptographic_message_syntax::asn1::rfc3161::TstInfo [−][src]
pub struct TstInfo { pub version: Integer, pub policy: TsaPolicyId, pub message_imprint: MessageImprint, pub serial_number: Integer, pub gen_time: GeneralizedTime, pub accuracy: Option<Accuracy>, pub ordering: Option<bool>, pub nonce: Option<Integer>, pub tsa: Option<GeneralName>, pub extensions: Option<Extensions>, }
Time stamp token info.
TSTInfo ::= SEQUENCE {
version INTEGER { v1(1) },
policy TSAPolicyId,
messageImprint MessageImprint,
-- MUST have the same value as the similar field in
-- TimeStampReq
serialNumber INTEGER,
-- Time-Stamping users MUST be ready to accommodate integers
-- up to 160 bits.
genTime GeneralizedTime,
accuracy Accuracy OPTIONAL,
ordering BOOLEAN DEFAULT FALSE,
nonce INTEGER OPTIONAL,
-- MUST be present if the similar field was present
-- in TimeStampReq. In that case it MUST have the same value.
tsa [0] GeneralName OPTIONAL,
extensions [1] IMPLICIT Extensions OPTIONAL }
Fields
version: Integer
policy: TsaPolicyId
message_imprint: MessageImprint
serial_number: Integer
gen_time: GeneralizedTime
accuracy: Option<Accuracy>
ordering: Option<bool>
nonce: Option<Integer>
tsa: Option<GeneralName>
extensions: Option<Extensions>
Implementations
impl TstInfo
[src]
impl TstInfo
[src]pub fn take_from<S: Source>(
cons: &mut Constructed<'_, S>
) -> Result<Self, S::Err>
[src]
cons: &mut Constructed<'_, S>
) -> Result<Self, S::Err>
pub fn encode_ref(&self) -> impl Values + '_
[src]
Trait Implementations
impl StructuralEq for TstInfo
[src]
impl StructuralEq for TstInfo
[src]impl StructuralPartialEq for TstInfo
[src]
impl StructuralPartialEq for TstInfo
[src]Auto Trait Implementations
impl RefUnwindSafe for TstInfo
impl RefUnwindSafe for TstInfo
impl UnwindSafe for TstInfo
impl UnwindSafe for TstInfo
Blanket Implementations
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]