pub struct TimeStampReq {
pub version: Integer,
pub message_imprint: MessageImprint,
pub req_policy: Option<TsaPolicyId>,
pub nonce: Option<Integer>,
pub cert_req: Option<bool>,
pub extensions: Option<Extensions>,
}
Expand description
A time-stamp request.
TimeStampReq ::= SEQUENCE {
version INTEGER { v1(1) },
messageImprint MessageImprint,
--a hash algorithm OID and the hash value of the data to be
--time-stamped
reqPolicy TSAPolicyId OPTIONAL,
nonce INTEGER OPTIONAL,
certReq BOOLEAN DEFAULT FALSE,
extensions [0] IMPLICIT Extensions OPTIONAL }
Fields§
§version: Integer
§message_imprint: MessageImprint
§req_policy: Option<TsaPolicyId>
§nonce: Option<Integer>
§cert_req: Option<bool>
§extensions: Option<Extensions>
Implementations§
Source§impl TimeStampReq
impl TimeStampReq
pub fn take_from<S: Source>( cons: &mut Constructed<'_, S>, ) -> Result<Self, DecodeError<S::Error>>
pub fn encode_ref(&self) -> impl Values + '_
Trait Implementations§
Source§impl Clone for TimeStampReq
impl Clone for TimeStampReq
Source§fn clone(&self) -> TimeStampReq
fn clone(&self) -> TimeStampReq
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 TimeStampReq
impl Debug for TimeStampReq
Source§impl PartialEq for TimeStampReq
impl PartialEq for TimeStampReq
impl Eq for TimeStampReq
impl StructuralPartialEq for TimeStampReq
Auto Trait Implementations§
impl !Freeze for TimeStampReq
impl RefUnwindSafe for TimeStampReq
impl Send for TimeStampReq
impl Sync for TimeStampReq
impl Unpin for TimeStampReq
impl UnwindSafe for TimeStampReq
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)