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>,
}
Expand description
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§
Source§impl TstInfo
impl TstInfo
pub fn take_from<S: Source>( cons: &mut Constructed<'_, S>, ) -> Result<Self, DecodeError<S::Error>>
pub fn encode_ref(&self) -> impl Values + '_
Trait Implementations§
impl Eq for TstInfo
impl StructuralPartialEq for TstInfo
Auto Trait Implementations§
impl !Freeze for TstInfo
impl RefUnwindSafe for TstInfo
impl Send for TstInfo
impl Sync for TstInfo
impl Unpin for TstInfo
impl UnwindSafe for TstInfo
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