pub enum LinearTickerData {
Snapshot(LinearTickerDataSnapshot),
Delta(LinearTickerDataDelta),
}Variants§
Snapshot(LinearTickerDataSnapshot)
Delta(LinearTickerDataDelta)
Implementations§
Source§impl LinearTickerData
impl LinearTickerData
Sourcepub fn try_unwrap_snapshot(
self,
) -> Result<LinearTickerDataSnapshot, TryUnwrapError<Self>>
pub fn try_unwrap_snapshot( self, ) -> Result<LinearTickerDataSnapshot, TryUnwrapError<Self>>
Attempts to unwrap this value to the LinearTickerData::Snapshot variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_delta(
self,
) -> Result<LinearTickerDataDelta, TryUnwrapError<Self>>
pub fn try_unwrap_delta( self, ) -> Result<LinearTickerDataDelta, TryUnwrapError<Self>>
Attempts to unwrap this value to the LinearTickerData::Delta variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Trait Implementations§
Source§impl Clone for LinearTickerData
impl Clone for LinearTickerData
Source§fn clone(&self) -> LinearTickerData
fn clone(&self) -> LinearTickerData
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 LinearTickerData
impl Debug for LinearTickerData
Source§impl<'de> Deserialize<'de> for LinearTickerData
impl<'de> Deserialize<'de> for LinearTickerData
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
Auto Trait Implementations§
impl Freeze for LinearTickerData
impl RefUnwindSafe for LinearTickerData
impl Send for LinearTickerData
impl Sync for LinearTickerData
impl Unpin for LinearTickerData
impl UnsafeUnpin for LinearTickerData
impl UnwindSafe for LinearTickerData
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