Trait IntoTimestamp

Source
pub trait IntoTimestamp {
    // Required method
    fn into_timestamp(self) -> Result<Timestamp, TimestampError>;
}
Expand description

Utility trait for converting an arbitrary host-specific time format into a Timestamp.

Required Methods§

Source

fn into_timestamp(self) -> Result<Timestamp, TimestampError>

Converts a time representation of type T back into a Timestamp.

This can be used to convert from custom light client or host time formats back into the standard Timestamp format.

Implementors§

Source§

impl<T> IntoTimestamp for T
where T: Into<OffsetDateTime>,