pub struct PublisherDatapoint(pub i64);Expand description
Per-publisher datapoint in an aggregate. Represents a price mantissa for price feeds or a rate mantissa for funding rate feeds.
Tuple Fields§
§0: i64Trait Implementations§
Source§impl Clone for PublisherDatapoint
impl Clone for PublisherDatapoint
Source§fn clone(&self) -> PublisherDatapoint
fn clone(&self) -> PublisherDatapoint
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 PublisherDatapoint
impl Debug for PublisherDatapoint
Source§impl<'de> Deserialize<'de> for PublisherDatapoint
impl<'de> Deserialize<'de> for PublisherDatapoint
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<Price> for PublisherDatapoint
impl From<Price> for PublisherDatapoint
Source§impl From<PublisherDatapoint> for i64
impl From<PublisherDatapoint> for i64
Source§fn from(original: PublisherDatapoint) -> Self
fn from(original: PublisherDatapoint) -> Self
Converts to this type from the input type.
Source§impl From<Rate> for PublisherDatapoint
impl From<Rate> for PublisherDatapoint
Source§impl From<i64> for PublisherDatapoint
impl From<i64> for PublisherDatapoint
Source§fn from(original: i64) -> PublisherDatapoint
fn from(original: i64) -> PublisherDatapoint
Converts to this type from the input type.
Source§impl Hash for PublisherDatapoint
impl Hash for PublisherDatapoint
Source§impl Ord for PublisherDatapoint
impl Ord for PublisherDatapoint
Source§fn cmp(&self, other: &PublisherDatapoint) -> Ordering
fn cmp(&self, other: &PublisherDatapoint) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PublisherDatapoint
impl PartialEq for PublisherDatapoint
Source§impl PartialOrd for PublisherDatapoint
impl PartialOrd for PublisherDatapoint
Source§impl Serialize for PublisherDatapoint
impl Serialize for PublisherDatapoint
impl Copy for PublisherDatapoint
impl Eq for PublisherDatapoint
impl StructuralPartialEq for PublisherDatapoint
Auto Trait Implementations§
impl Freeze for PublisherDatapoint
impl RefUnwindSafe for PublisherDatapoint
impl Send for PublisherDatapoint
impl Sync for PublisherDatapoint
impl Unpin for PublisherDatapoint
impl UnsafeUnpin for PublisherDatapoint
impl UnwindSafe for PublisherDatapoint
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more