pub struct DefaultOtsParser;Expand description
Default OtsParser implementation. Wraps the upstream
opentimestamps crate behind the whitelist.
Implementations§
Source§impl DefaultOtsParser
impl DefaultOtsParser
Sourcepub fn parse_with_submitted_at(
&self,
bytes: &[u8],
submitted_at: DateTime<Utc>,
) -> Result<TypedOtsProof, OtsError>
pub fn parse_with_submitted_at( &self, bytes: &[u8], submitted_at: DateTime<Utc>, ) -> Result<TypedOtsProof, OtsError>
Variant of OtsParser::parse that lets the live adapter inject
the operator-recorded submission timestamp instead of Utc::now.
The OTS binary format does not carry its own timestamp, so the
adapter is responsible for stamping the Pending variant.
Trait Implementations§
Source§impl Clone for DefaultOtsParser
impl Clone for DefaultOtsParser
Source§fn clone(&self) -> DefaultOtsParser
fn clone(&self) -> DefaultOtsParser
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DefaultOtsParser
impl Debug for DefaultOtsParser
Source§impl Default for DefaultOtsParser
impl Default for DefaultOtsParser
Source§fn default() -> DefaultOtsParser
fn default() -> DefaultOtsParser
Returns the “default value” for a type. Read more
Source§impl OtsParser for DefaultOtsParser
impl OtsParser for DefaultOtsParser
impl Copy for DefaultOtsParser
Auto Trait Implementations§
impl Freeze for DefaultOtsParser
impl RefUnwindSafe for DefaultOtsParser
impl Send for DefaultOtsParser
impl Sync for DefaultOtsParser
impl Unpin for DefaultOtsParser
impl UnsafeUnpin for DefaultOtsParser
impl UnwindSafe for DefaultOtsParser
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