pub struct TimestampRequest {
pub version: u32,
pub message_imprint: MessageImprint,
pub nonce: Option<String>,
pub cert_req: bool,
}Expand description
A timestamp request to be sent to a Time Stamp Authority (TSA).
Fields§
§version: u32Version of the request format.
message_imprint: MessageImprintHash of the data to be timestamped.
nonce: Option<String>Optional nonce for replay protection.
cert_req: boolWhether to include the TSA certificate in the response.
Implementations§
Source§impl TimestampRequest
impl TimestampRequest
Sourcepub fn for_document(document_id: &DocumentId) -> Self
pub fn for_document(document_id: &DocumentId) -> Self
Create a new timestamp request for a document.
Sourcepub fn with_nonce(self, nonce: impl Into<String>) -> Self
pub fn with_nonce(self, nonce: impl Into<String>) -> Self
Set a nonce for replay protection.
Trait Implementations§
Source§impl Clone for TimestampRequest
impl Clone for TimestampRequest
Source§fn clone(&self) -> TimestampRequest
fn clone(&self) -> TimestampRequest
Returns a duplicate 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 TimestampRequest
impl Debug for TimestampRequest
Source§impl<'de> Deserialize<'de> for TimestampRequest
impl<'de> Deserialize<'de> for TimestampRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TimestampRequest
impl PartialEq for TimestampRequest
Source§impl Serialize for TimestampRequest
impl Serialize for TimestampRequest
impl Eq for TimestampRequest
impl StructuralPartialEq for TimestampRequest
Auto Trait Implementations§
impl Freeze for TimestampRequest
impl RefUnwindSafe for TimestampRequest
impl Send for TimestampRequest
impl Sync for TimestampRequest
impl Unpin for TimestampRequest
impl UnsafeUnpin for TimestampRequest
impl UnwindSafe for TimestampRequest
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.