Struct ots::timestamp::Timestamp
[−]
[src]
pub struct Timestamp { pub start_digest: Vec<u8>, pub first_step: Step, }
Main structure representing a timestamp
Fields
start_digest: Vec<u8>
The starting document digest
first_step: Step
The first execution step in verifying it
Methods
impl Timestamp
[src]
fn deserialize<R: Read>(
deser: &mut Deserializer<R>,
digest: Vec<u8>
) -> Result<Timestamp, Error>
deser: &mut Deserializer<R>,
digest: Vec<u8>
) -> Result<Timestamp, Error>
Deserialize a timestamp
fn serialize<W: Write>(&self, ser: &mut Serializer<W>) -> Result<(), Error>
Serialize a timestamp
Trait Implementations
impl Clone for Timestamp
[src]
fn clone(&self) -> Timestamp
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Timestamp
[src]
fn eq(&self, __arg_0: &Timestamp) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Timestamp) -> bool
This method tests for !=
.