[][src]Struct opentimestamps::ser::DetachedTimestampFile

pub struct DetachedTimestampFile {
    pub digest_type: DigestType,
    pub timestamp: Timestamp,
}

Structure representing an info file

Fields

digest_type: DigestType

The claimed hash function used to produce the document digest

timestamp: Timestamp

The actual timestamp data

Methods

impl DetachedTimestampFile[src]

pub fn from_reader<R: Read>(reader: R) -> Result<DetachedTimestampFile, Error>[src]

Deserialize a info file from a reader

pub fn to_writer<W: Write>(&self, writer: W) -> Result<(), Error>[src]

Serialize the file into a reader

Trait Implementations

impl Clone for DetachedTimestampFile[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<DetachedTimestampFile> for DetachedTimestampFile[src]

impl Eq for DetachedTimestampFile[src]

impl Display for DetachedTimestampFile[src]

impl Debug for DetachedTimestampFile[src]

Auto Trait Implementations

impl Unpin for DetachedTimestampFile

impl Sync for DetachedTimestampFile

impl Send for DetachedTimestampFile

impl UnwindSafe for DetachedTimestampFile

impl RefUnwindSafe for DetachedTimestampFile

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]