pub enum BlockIndex {
Int(i64),
Str(String),
}Expand description
Index type that can be either an integer or string. Used during streaming for block ordering.
Variants§
Trait Implementations§
Source§impl Clone for BlockIndex
impl Clone for BlockIndex
Source§fn clone(&self) -> BlockIndex
fn clone(&self) -> BlockIndex
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 BlockIndex
impl Debug for BlockIndex
Source§impl<'de> Deserialize<'de> for BlockIndex
impl<'de> Deserialize<'de> for BlockIndex
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&str> for BlockIndex
impl From<&str> for BlockIndex
Source§impl From<String> for BlockIndex
impl From<String> for BlockIndex
Source§impl From<i32> for BlockIndex
impl From<i32> for BlockIndex
Source§impl From<i64> for BlockIndex
impl From<i64> for BlockIndex
Source§impl From<usize> for BlockIndex
impl From<usize> for BlockIndex
Source§impl PartialEq for BlockIndex
impl PartialEq for BlockIndex
Source§impl Serialize for BlockIndex
impl Serialize for BlockIndex
impl StructuralPartialEq for BlockIndex
Auto Trait Implementations§
impl Freeze for BlockIndex
impl RefUnwindSafe for BlockIndex
impl Send for BlockIndex
impl Sync for BlockIndex
impl Unpin for BlockIndex
impl UnwindSafe for BlockIndex
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