pub enum BlockOrTimestamp {
Block(BlockIdentifier),
Timestamp(NaiveDateTime),
}Expand description
Point in time as either block or timestamp. If a block is chosen it timestamp attribute is used.
Variants§
Block(BlockIdentifier)
Timestamp(NaiveDateTime)
Trait Implementations§
Source§impl Clone for BlockOrTimestamp
impl Clone for BlockOrTimestamp
Source§fn clone(&self) -> BlockOrTimestamp
fn clone(&self) -> BlockOrTimestamp
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 BlockOrTimestamp
impl Debug for BlockOrTimestamp
Source§impl Hash for BlockOrTimestamp
impl Hash for BlockOrTimestamp
Source§impl PartialEq for BlockOrTimestamp
impl PartialEq for BlockOrTimestamp
Source§impl TryFrom<&VersionParam> for BlockOrTimestamp
impl TryFrom<&VersionParam> for BlockOrTimestamp
impl Eq for BlockOrTimestamp
impl StructuralPartialEq for BlockOrTimestamp
Auto Trait Implementations§
impl !Freeze for BlockOrTimestamp
impl RefUnwindSafe for BlockOrTimestamp
impl Send for BlockOrTimestamp
impl Sync for BlockOrTimestamp
impl Unpin for BlockOrTimestamp
impl UnwindSafe for BlockOrTimestamp
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.